public int AddConfig(t_EE_enTypeConfig model) { try { return(_dbFactory.typeconfig.AddConfig(model)); } catch (Exception ex) { throw ex; } }
public int AddConfig(t_EE_enTypeConfig model) { string sql = $"insert into t_EE_enTypeConfig(UID,UserID,CollTypeID,EnerUserTypeID) values({model.UID},{model.UserID},{model.CollTypeID},{model.EnerUserTypeID})"; return(ExecuteSqlCommand(sql)); }