- 增加 IFreeSql.GlobalFilter 全局过滤器;

- 移除 TableAttribute.SelectFilter 功能;
This commit is contained in:
28810
2019-10-24 02:17:22 +08:00
parent 5b0b678c27
commit b97156b482
46 changed files with 271 additions and 148 deletions

View File

@ -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>

View File

@ -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 同步结构迁移