/// <summary> /// Deprecated Method for adding a new object to the UserSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserSet(User user) { base.AddObject("UserSet", user); }
/// <summary> /// Create a new User object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="username">Initial value of the Username property.</param> /// <param name="version">Initial value of the Version property.</param> public static User CreateUser(global::System.Int32 userId, global::System.String username, global::System.Byte[] version) { User user = new User(); user.UserId = userId; user.Username = username; user.Version = version; return user; }