/// <summary> ///添加记录 /// </summary> /// <param name="Scheme"></param> /// <returns></returns> public bool GetInsert(M_Scheme model) { return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)) > 0); }
/// <summary> /// 根据ID更新 /// </summary> public bool UpdateByID(M_Scheme model) { return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters())); }