- 增加 FreeSqlBuilder UseSeedData 设定 CodeFirst 种子数据;

This commit is contained in:
28810
2020-04-02 16:21:18 +08:00
parent 6ea5c5d103
commit e5cbd407cb
8 changed files with 222 additions and 243 deletions

View File

@ -21,8 +21,7 @@ namespace FreeSql
{
var tkeyType = typeof(TKey)?.NullableTypeOrThis();
if (tkeyType == typeof(int) || tkeyType == typeof(long))
Orm.CodeFirst.ConfigEntity(typeof(TEntity),
t => t.Property("Id").IsIdentity(true));
BaseEntity.ConfigEntity(typeof(TEntity), t => t.Property("Id").IsIdentity(true));
}
/// <summary>