public static int Delete(this Database.Tables.题.知识面 o, ColumnEnums.Tables.题.知识面.Handler conditionCols = null) { if (conditionCols == null) { return(Database.Tables.题.知识面.Delete(t => t.知识面编号 == o.知识面编号 )); } var cols = conditionCols(new DAL.ColumnEnums.Tables.题.知识面()); var exp = new DAL.Expressions.Tables.题.知识面(); if (cols.Contains(0)) { exp.And(t => t.知识面编号 == o.知识面编号); } if (cols.Contains(1)) { exp.And(t => t.称 == o.称); } return(Database.Tables.题.知识面.Delete(exp)); }
public static int Update(this Database.Tables.题.知识面 o, Expressions.Tables.题.知识面.Handler eh = null, ColumnEnums.Tables.题.知识面.Handler updateCols = null, ColumnEnums.Tables.题.知识面.Handler fillCols = null, bool isFillAfterUpdate = true) { return(Database.Tables.题.知识面.Update(o, eh, updateCols, fillCols, isFillAfterUpdate)); }
public static int Insert(this Database.Tables.题.知识面 o, ColumnEnums.Tables.题.知识面.Handler insertCols = null, ColumnEnums.Tables.题.知识面.Handler fillCols = null, bool isFillAfterInsert = true) { return(Database.Tables.题.知识面.Insert(o, insertCols, fillCols, isFillAfterInsert)); }