mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
ICodeFirst add GetConfigEntity
This commit is contained in:
@ -53,7 +53,25 @@ namespace FreeSql {
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
(int type, string dbtype, string dbtypeFull, bool? isnullable, object defaultValue)? GetDbInfo(Type type);
|
||||
/// <summary>
|
||||
/// 在外部配置实体的特性
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
ICodeFirst ConfigEntity<T>(Action<TableFluent<T>> entity);
|
||||
/// <summary>
|
||||
/// 在外部配置实体的特性
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
ICodeFirst ConfigEntity(Type type, Action<TableFluent> entity);
|
||||
/// <summary>
|
||||
/// 获取在外部配置实体的特性
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns>未使用ConfigEntity配置时,返回null</returns>
|
||||
TableAttribute GetConfigEntity(Type type);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user