mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 IndexAttribute 特性,自动迁移索引,以及对应的 FluentApi 方法;
- 移除 ColumnAttribute.Unique 属性设置,改为 IndexAttribute 特性设置唯一键;
This commit is contained in:
@ -163,6 +163,7 @@ namespace FreeSql.Tests.DataAnnotations
|
||||
Assert.NotEqual(item.testfield2, find.testfield2);
|
||||
Assert.Equal(1000, find.testfield1);
|
||||
}
|
||||
[Index("idx_xxx", "testfield1 ASC, testfield2 DESC")]
|
||||
class TestCanInsert
|
||||
{
|
||||
public Guid id { get; set; }
|
||||
|
Reference in New Issue
Block a user