public void AddUser(IUserView usr) { tbl_Usr User = new tbl_Usr(); User.Usr_ = usr.UsrId; User.UsrName = usr.UsrName; User.UsrLogedin = usr.UsrLogedIn; User.UsrPassword = usr.UsrPassword; User.UsrIdent = usr.UsrIdent; MerpDatabase().tbl_Usr.AddObject(User); try { MerpDatabase().SaveChanges(); } catch(Exception e) { } }
/// <summary> /// Deprecated Method for adding a new object to the tbl_Usr EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbl_Usr(tbl_Usr tbl_Usr) { base.AddObject("tbl_Usr", tbl_Usr); }
/// <summary> /// Create a new tbl_Usr object. /// </summary> /// <param name="usr_">Initial value of the Usr_ property.</param> /// <param name="usrNumber">Initial value of the UsrNumber property.</param> /// <param name="usrIdent">Initial value of the UsrIdent property.</param> /// <param name="usrName">Initial value of the UsrName property.</param> /// <param name="usrPassword">Initial value of the UsrPassword property.</param> /// <param name="usrLogedin">Initial value of the UsrLogedin property.</param> public static tbl_Usr Createtbl_Usr(global::System.Int32 usr_, global::System.Int32 usrNumber, global::System.String usrIdent, global::System.String usrName, global::System.String usrPassword, global::System.Boolean usrLogedin) { tbl_Usr tbl_Usr = new tbl_Usr(); tbl_Usr.Usr_ = usr_; tbl_Usr.UsrNumber = usrNumber; tbl_Usr.UsrIdent = usrIdent; tbl_Usr.UsrName = usrName; tbl_Usr.UsrPassword = usrPassword; tbl_Usr.UsrLogedin = usrLogedin; return tbl_Usr; }