/// <summary> /// Create a new AccountUser object. /// </summary> /// <param name="accountId">Initial value of the AccountId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="isAdministrator">Initial value of the IsAdministrator property.</param> /// <param name="createdAt">Initial value of the CreatedAt property.</param> /// <param name="updatedAt">Initial value of the UpdatedAt property.</param> public static AccountUser CreateAccountUser(global::System.Int32 accountId, global::System.Guid userId, global::System.Boolean isAdministrator, global::System.DateTime createdAt, global::System.DateTime updatedAt) { AccountUser accountUser = new AccountUser(); accountUser.AccountId = accountId; accountUser.UserId = userId; accountUser.IsAdministrator = isAdministrator; accountUser.CreatedAt = createdAt; accountUser.UpdatedAt = updatedAt; return accountUser; }
/// <summary> /// Deprecated Method for adding a new object to the AccountUsers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAccountUsers(AccountUser accountUser) { base.AddObject("AccountUsers", accountUser); }