[AcceptVerbs(HttpVerbs.Post)] public ActionResult CreateUser( [Bind(Exclude="IdUtilisateur")Utilisateur UtilisateurCree) { if (!ModelState.IsValid) return View(); _db.AddToUtilisateurs(UtilisateurCree); _db.SaveChanges(); return RedirectToAction("CreateUser"); }
_db.AddToUtilisateurs(UtilisateurCree);
USE DATABASENAME GO SET IDENTITY_INSERT [TABLENAME] ON INSERT [TABLENAME] ([AUTOIDFIELDNAME]) VALUES(1) SET IDENTITY_INSERT [Tbl_Co_IEUpdateId] OFF GO
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)