Exemple #1
0
 public void Create(LoginMaster loginMaster)
 {
     using (DefaultCS db = new DefaultCS())
     {
         db.LoginMasters.MergeOption = MergeOption.NoTracking;
         db.LoginMasters.AddObject(loginMaster);
         db.SaveChanges();
     }
 }
Exemple #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the LoginMasters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLoginMasters(LoginMaster loginMaster)
 {
     base.AddObject("LoginMasters", loginMaster);
 }
Exemple #3
0
 /// <summary>
 /// Create a new LoginMaster object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 public static LoginMaster CreateLoginMaster(global::System.String userId, global::System.String password, global::System.String type)
 {
     LoginMaster loginMaster = new LoginMaster();
     loginMaster.UserId = userId;
     loginMaster.Password = password;
     loginMaster.Type = type;
     return loginMaster;
 }