예제 #1
0
        public static int Delete(this Database.Tables.人.岗位_知识面 o, ColumnEnums.Tables.人.岗位_知识面.Handler conditionCols = null)
        {
            if (conditionCols == null)
            {
                return(Database.Tables.人.岗位_知识面.Delete(t =>
                                                       t.岗位编号 == o.岗位编号 &
                                                       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.知识面编号);
            }
            if (cols.Contains(2))
            {
                exp.And(t => t.深度 == o.深度);
            }
            return(Database.Tables.人.岗位_知识面.Delete(exp));
        }
예제 #2
0
 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));
 }
예제 #3
0
 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));
 }