- 增加 DbContext 与 EFCore 相似的 FluentApi 对动态类型的处理;#281

This commit is contained in:
28810
2020-04-20 21:13:44 +08:00
parent 67222ba007
commit b1660e87a5
7 changed files with 701 additions and 192 deletions

View File

@ -80,6 +80,11 @@ namespace FreeSql.DataAnnotations
_table._indexs.AddOrUpdate(name, idx, (_, __) => idx);
return this;
}
public TableFluent IndexRemove(string name)
{
_table._indexs.TryRemove(name, out var oldidx);
return this;
}
}
public class TableFluent<T>