Ejemplo n.º 1
0
 public IEnumerable <T> GetAll <T>() where T : new()
 {
     return(DbUtil.GetAll <T>(Cs));
 }
Ejemplo n.º 2
0
 public IEnumerable <Dossier> GetBy(int measuresetId, int measureId, int month, int?stateId = null)
 {
     return(DbUtil.ExecuteReaderSp <Dossier>("getDossiers", new { measuresetId, measureId, month, stateId }, Cs));
 }
Ejemplo n.º 3
0
 public IEnumerable <Measure> GetActives()
 {
     return(DbUtil.ExecuteReaderSp <Measure>("getMeasures", null, Cs));
 }
Ejemplo n.º 4
0
 public int UpdateWhatWhere <T>(object what, object where)
 {
     return(DbUtil.UpdateWhatWhere <T>(what, where, Cs));
 }
Ejemplo n.º 5
0
 public IEnumerable <Field> GetUnassigned(int id)
 {
     return(DbUtil.ExecuteReaderSp <Field>("getUnassignedFieldsByFieldsetId", new { id }, Cs));
 }
Ejemplo n.º 6
0
 public IEnumerable <T> GetWhere <T>(object where) where T : new()
 {
     return(DbUtil.GetWhere <T>(where, Cs));
 }
Ejemplo n.º 7
0
 public int DeleteWhere <T>(object where)
 {
     return(DbUtil.DeleteWhere <T>(where, Cs));
 }
Ejemplo n.º 8
0
 public int Count(string name)
 {
     return(DbUtil.CountWhere <User>(new { name }, Cs));
 }
Ejemplo n.º 9
0
 public IEnumerable <Role> GetRoles()
 {
     return(DbUtil.GetAll <Role>(Cs));
 }
Ejemplo n.º 10
0
 public void MoveToFpi(int fpiId)
 {
     DbUtil.ExecuteNonQuerySp("updateToFpi", new { fpiId }, Cs);
 }
Ejemplo n.º 11
0
 public IEnumerable <Role> GetRoles(long id)
 {
     return(DbUtil.ExecuteReaderSp <Role>("getRolesByUserId", new { id }, Cs));
 }
Ejemplo n.º 12
0
 public void RollbackToIndicators(int fpiId)
 {
     DbUtil.ExecuteNonQuerySp("rollbackToIndicators", new { fpiId }, Cs);
 }
Ejemplo n.º 13
0
 public int RollbackWinners(int fpiId)
 {
     return(DbUtil.ExecuteNonQuerySp("rollbackWinners", new { fpiId }, Cs));
 }
Ejemplo n.º 14
0
 public IEnumerable <RankedDossier> GetForRanking(int measuresetId, int measureId, int month)
 {
     return(DbUtil.ExecuteReaderSp <RankedDossier>("getDossiersForRanking", new { measuresetId, measureId, month }, Cs));
 }
Ejemplo n.º 15
0
 public T Get <T>(int id) where T : new()
 {
     return(DbUtil.Get <T>(id, Cs));
 }
Ejemplo n.º 16
0
 public int UpdatePassword(int id, string password)
 {
     return(DbUtil.UpdateWhatWhere <User>(new { password }, new { id }, Cs));
 }
Ejemplo n.º 17
0
 public int Delete <T>(int id) where T : new()
 {
     return(DbUtil.Delete <T>(id, Cs));
 }
Ejemplo n.º 18
0
 public IEnumerable <IndicatorValue> GetBy(int fpiId)
 {
     return(DbUtil.ExecuteReaderSp <IndicatorValue>("getIndicatorValues", new { fpiId }, Cs));
 }
Ejemplo n.º 19
0
 public int InsertNoIdentity(object o)
 {
     return(DbUtil.InsertNoIdentity(o, Cs));
 }
Ejemplo n.º 20
0
 public IEnumerable <int> GetUsedIn(DateTime month)
 {
     return(DbUtil.ExecuteReaderSpValueType <int>("getUsedMeasureIds", Cs, new { month }));
 }
Ejemplo n.º 21
0
 public int Insert(object o)
 {
     return(DbUtil.Insert(o, Cs));
 }
Ejemplo n.º 22
0
 public IEnumerable <Measure> GetUnassigned(int measuresetId)
 {
     return(DbUtil.ExecuteReaderSp <Measure>("getUnassignedMeasures", new { measuresetId }, Cs));
 }
Ejemplo n.º 23
0
 public IEnumerable <Competitor> Losers(int fpiId)
 {
     return(DbUtil.ExecuteReaderSp <Competitor>("getLosers", new { fpiId }, Cs));
 }
Ejemplo n.º 24
0
 public int Unassign(int measureId, int measuresetId)
 {
     return(DbUtil.ExecuteNonQuerySp("unassignMeasure", new { measureId, measuresetId }, Cs));
 }
Ejemplo n.º 25
0
 public int UnassignField(int fieldId, int fieldsetId)
 {
     return(DbUtil.ExecuteNonQuerySp("unassignField", new { fieldId, fieldsetId }, Cs));
 }
Ejemplo n.º 26
0
 public int ChangeState(int id, DossierStates stateId)
 {
     return(DbUtil.ExecuteNonQuerySp("changeDossierState", new { id, stateId }, Cs));
 }