Esempio n. 1
0
 //UPDATES
 internal void updateMidnStatusType(MidnStatusType statusType)
 {
     String sql = "update MIDN_STATUS set status=:x where id=:y";
     using (MedMidsContext db = new MedMidsContext())
     {
         db.Database.ExecuteSqlCommand(sql, new OracleParameter(":x", statusType.Status)
                                     , new OracleParameter(":y", statusType.Id));
     }
 }
Esempio n. 2
0
 internal int addMidnStatusType(MidnStatusType midnstatus)
 {
     string sql = "insert into MIDN_STATUS (STATUS) values (:s)";
     var data = db.Database.ExecuteSqlCommand(sql,
                                             new OracleParameter(":s", midnstatus.Status)
                                             );
     return data;
 }