示例#1
0
 /// <summary>
 /// Create a new Account object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="createdAt">Initial value of the CreatedAt property.</param>
 /// <param name="updatedAt">Initial value of the UpdatedAt property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Account CreateAccount(global::System.Int32 id, global::System.String name, global::System.DateTime createdAt, global::System.DateTime updatedAt, global::System.Boolean isActive)
 {
     Account account = new Account();
     account.Id = id;
     account.Name = name;
     account.CreatedAt = createdAt;
     account.UpdatedAt = updatedAt;
     account.IsActive = isActive;
     return account;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Accounts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAccounts(Account account)
 {
     base.AddObject("Accounts", account);
 }