mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 FreeSql.DbContext OnModelCreating 虚方法,实现在 DbContext 使用 FluentApi;#4 - 移除 FreeSql.Extensions.EfCoreFluentApi,功能移至 FreeSql.DbContext;
This commit is contained in:
@ -86,21 +86,21 @@ namespace FreeSql
|
||||
/// <returns></returns>
|
||||
DbInfoResult GetDbInfo(Type type);
|
||||
/// <summary>
|
||||
/// 在外部配置实体的特性
|
||||
/// FreeSql FluentApi 配置实体,方法名与特性相同
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
ICodeFirst ConfigEntity<T>(Action<TableFluent<T>> entity);
|
||||
/// <summary>
|
||||
/// 在外部配置实体的特性
|
||||
/// FreeSql FluentApi 配置实体,方法名与特性相同
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
ICodeFirst ConfigEntity(Type type, Action<TableFluent> entity);
|
||||
/// <summary>
|
||||
/// 获取在外部配置实体的特性
|
||||
/// 获取 FreeSql FluentApi 配置实体的元数据
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns>未使用ConfigEntity配置时,返回null</returns>
|
||||
|
Reference in New Issue
Block a user