This commit is contained in:
sunkaixuan
2017-04-30 23:02:04 +08:00
parent dcc026d5bc
commit efe78d767e

View File

@@ -17,14 +17,24 @@ namespace SqlSugar
this.RemoveAll(it => it.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase));
this.Add(new MappingTable() { EntityName = entityName, DbTableName = dbTableName, DbShortTaleName = dbTableShortName });
}
public new void Clear()
{
this.RemoveAll(it=>true);
}
}
public class IgnoreComumnList : List<IgnoreComumn> {
public class IgnoreComumnList : List<IgnoreComumn>
{
public void Add(string EntityPropertyName, string EntityName)
{
this.RemoveAll(it => it.EntityPropertyName.Equals(EntityPropertyName, StringComparison.CurrentCultureIgnoreCase));
this.Add(new IgnoreComumn() { EntityPropertyName = EntityPropertyName, EntityName = EntityName });
}
public new void Clear()
{
this.RemoveAll(it => true);
}
}
public class MappingColumnList : List<MappingColumn>
@@ -34,5 +44,9 @@ namespace SqlSugar
this.RemoveAll(it => it.EntityPropertyName.Equals(EntityPropertyName, StringComparison.CurrentCultureIgnoreCase));
this.Add(new MappingColumn() { EntityPropertyName = EntityPropertyName, DbColumnName = dbColumnName, DbTableName = dbTableName });
}
public new void Clear()
{
this.RemoveAll(it => true);
}
}
}