using System; using System.Collections.Concurrent; namespace FreeSql.DataAnnotations { public class TableAttribute : Attribute { /// /// 数据库表名 /// public string Name { get; set; } /// /// 指定数据库旧的表名,修改实体命名时,同时设置此参数为修改之前的值,CodeFirst才可以正确修改数据库表;否则将视为【创建新表】 /// public string OldName { get; set; } /// /// 查询过滤SQL,实现类似 a.IsDeleted = 1 功能 /// public string SelectFilter { get; set; } internal ConcurrentDictionary _columns { get; } = new ConcurrentDictionary(StringComparer.CurrentCultureIgnoreCase); } }