public bool UpdateByID(Appinfo model) { if (string.IsNullOrEmpty(model.SourcePlat)) { throw new Exception("未指定平台"); } return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters())); }
public int Insert(Appinfo model) { return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model))); }