mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 IFreeSql.GlobalFilter 全局过滤器;
- 移除 TableAttribute.SelectFilter 功能;
This commit is contained in:
@ -16,10 +16,6 @@ namespace FreeSql.DataAnnotations
|
||||
/// 指定数据库旧的表名,修改实体命名时,同时设置此参数为修改之前的值,CodeFirst才可以正确修改数据库表;否则将视为【创建新表】
|
||||
/// </summary>
|
||||
public string OldName { get; set; }
|
||||
/// <summary>
|
||||
/// 查询过滤SQL,实现类似 a.IsDeleted = 1 功能
|
||||
/// </summary>
|
||||
public string SelectFilter { get; set; }
|
||||
|
||||
internal bool? _DisableSyncStructure;
|
||||
/// <summary>
|
||||
|
@ -35,14 +35,6 @@ namespace FreeSql.DataAnnotations
|
||||
_table.OldName = value;
|
||||
return this;
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询过滤SQL,实现类似 a.IsDeleted = 1 功能
|
||||
/// </summary>
|
||||
public TableFluent SelectFilter(string value)
|
||||
{
|
||||
_table.SelectFilter = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 禁用 CodeFirst 同步结构迁移
|
||||
@ -100,14 +92,6 @@ namespace FreeSql.DataAnnotations
|
||||
_table.OldName = value;
|
||||
return this;
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询过滤SQL,实现类似 a.IsDeleted = 1 功能
|
||||
/// </summary>
|
||||
public TableFluent<T> SelectFilter(string value)
|
||||
{
|
||||
_table.SelectFilter = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 禁用 CodeFirst 同步结构迁移
|
||||
|
Reference in New Issue
Block a user