예제 #1
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_Templata model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.TemplateID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }
예제 #2
0
 public bool Add(M_Templata model)
 {
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)) > 0);
 }