Esempio n. 1
0
 public static string SqlDelete(this HRMDB_Entities db, string name, int id)
 {
     return(db.Database.SqlDelete(name, id));
 }
Esempio n. 2
0
 public static int SqlExecute(this HRMDB_Entities db, string query, params object[] parameters)
 {
     return(db.Database.SqlExecute(query, parameters));
 }
Esempio n. 3
0
 public static DataTable SqlQuery(this HRMDB_Entities db, string sql, params object[] parameters)
 {
     return(db.Database.SqlQuery(sql, parameters));
 }
Esempio n. 4
0
 public static string SqlUpdate(this HRMDB_Entities db, string name, NameValueCollection form)
 {
     return(db.Database.SqlUpdate(name, form));
 }
 public ActionResult TK_DayDu()
 {
     ViewBag.db  = db;
     ViewBag.db0 = db0 = new HRMDB_Entities();
     return(View());
 }