示例#1
0
 public Update(string tableName, T values)
 {
     _tableName    = tableName;
     _values       = ConvertToDictionary.ConvertTo <T>(values);
     _criterions   = new List <Criterion>();
     _excludeField = new List <ExcludeField>();
 }
示例#2
0
        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;
        }
示例#3
0
 public void AddValues(T values)
 {
     _values = ConvertToDictionary.ConvertTo <T>(values);
 }
示例#4
0
 public Insert(string tableName, T values)
 {
     _tableName    = tableName;
     _values       = ConvertToDictionary.ConvertTo <T>(values);
     _excludeField = new List <ExcludeField>();
 }