コード例 #1
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 public static User CreateUser(global::System.Guid id, global::System.String firstName, global::System.String lastName, global::System.String description, global::System.DateTime dateCreated, global::System.Boolean active)
 {
     User user = new User();
     user.Id = id;
     user.FirstName = firstName;
     user.LastName = lastName;
     user.Description = description;
     user.DateCreated = dateCreated;
     user.Active = active;
     return user;
 }
コード例 #2
0
ファイル: Context.cs プロジェクト: sunilbulusu/DealerSoftware
 /// <summary>
 /// Deprecated Method for adding a new object to the User EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUser(User user)
 {
     base.AddObject("User", user);
 }