コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTousers(user user)
 {
     base.AddObject("users", user);
 }
コード例 #2
0
 /// <summary>
 /// Create a new user object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="username">Initial value of the username property.</param>
 /// <param name="churchId">Initial value of the ChurchId property.</param>
 /// <param name="password">Initial value of the password property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static user Createuser(global::System.Int32 id, global::System.String username, global::System.Int32 churchId, global::System.String password, global::System.DateTime dateCreated, global::System.Boolean isActive)
 {
     user user = new user();
     user.Id = id;
     user.username = username;
     user.ChurchId = churchId;
     user.password = password;
     user.DateCreated = dateCreated;
     user.IsActive = isActive;
     return user;
 }