public Update(string tableName, T values) { _tableName = tableName; _values = ConvertToDictionary.ConvertTo <T>(values); _criterions = new List <Criterion>(); _excludeField = new List <ExcludeField>(); }
private IList <ExcludeField> _excludeField; //不需要更新的字段 public Update(string tableName, T values, IList <Criterion> criterions, SqlOperator sqlOperator, IList <ExcludeField> excludeField) { _tableName = tableName; _values = ConvertToDictionary.ConvertTo <T>(values); _criterions = criterions; _sqlOperator = sqlOperator; _excludeField = excludeField; }
public void AddValues(T values) { _values = ConvertToDictionary.ConvertTo <T>(values); }
public Insert(string tableName, T values) { _tableName = tableName; _values = ConvertToDictionary.ConvertTo <T>(values); _excludeField = new List <ExcludeField>(); }