/// <summary> /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUsers(User user) { base.AddObject("Users", user); }
/// <summary> /// Create a new User object. /// </summary> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="membershipUserID">Initial value of the MembershipUserID property.</param> /// <param name="userFirstName">Initial value of the UserFirstName property.</param> /// <param name="userLastName">Initial value of the UserLastName property.</param> /// <param name="userTitle">Initial value of the UserTitle property.</param> /// <param name="companyID">Initial value of the CompanyID property.</param> public static User CreateUser(global::System.Int32 userID, global::System.Int32 membershipUserID, global::System.String userFirstName, global::System.String userLastName, global::System.String userTitle, global::System.Int32 companyID) { User user = new User(); user.UserID = userID; user.MembershipUserID = membershipUserID; user.UserFirstName = userFirstName; user.UserLastName = userLastName; user.UserTitle = userTitle; user.CompanyID = companyID; return user; }