Beispiel #1
0
 /// <summary>
 /// 更新信息
 /// </summary>
 public bool UpdateModel(M_DataSource model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }
Beispiel #2
0
 //-------------------Create
 /// <summary>
 /// 依据模型,插入一条数据,Parameter形式,返回ID
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int Insert(M_DataSource model)
 {
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }