/// <summary> /// Create a new User object. /// </summary> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="domain">Initial value of the Domain property.</param> /// <param name="username">Initial value of the Username property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="isEnabled">Initial value of the IsEnabled property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDateUtc">Initial value of the CreatedDateUtc property.</param> /// <param name="createdSystemID">Initial value of the CreatedSystemID property.</param> /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param> /// <param name="lastModifiedDateUtc">Initial value of the LastModifiedDateUtc property.</param> /// <param name="lastModifiedSystemID">Initial value of the LastModifiedSystemID property.</param> /// <param name="versionNumber">Initial value of the VersionNumber property.</param> public static User CreateUser(global::System.Int32 userID, global::System.String domain, global::System.String username, global::System.String firstName, global::System.String lastName, global::System.String email, global::System.Boolean isEnabled, global::System.String createdBy, global::System.DateTime createdDateUtc, global::System.Int32 createdSystemID, global::System.String lastModifiedBy, global::System.DateTime lastModifiedDateUtc, global::System.Int32 lastModifiedSystemID, global::System.Int64 versionNumber) { User user = new User(); user.UserID = userID; user.Domain = domain; user.Username = username; user.FirstName = firstName; user.LastName = lastName; user.Email = email; user.IsEnabled = isEnabled; user.CreatedBy = createdBy; user.CreatedDateUtc = createdDateUtc; user.CreatedSystemID = createdSystemID; user.LastModifiedBy = lastModifiedBy; user.LastModifiedDateUtc = lastModifiedDateUtc; user.LastModifiedSystemID = lastModifiedSystemID; user.VersionNumber = versionNumber; return user; }
/// <summary> /// Deprecated Method for adding a new object to the User EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUser(User user) { base.AddObject("User", user); }