/// <summary> /// 用于向 Users EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToUsers(User user) { base.AddObject("Users", user); }
/// <summary> /// 创建新的 User 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="loginPwd">LoginPwd 属性的初始值。</param> /// <param name="friendshipPolicyId">FriendshipPolicyId 属性的初始值。</param> /// <param name="nickName">NickName 属性的初始值。</param> /// <param name="faceId">FaceId 属性的初始值。</param> /// <param name="sex">Sex 属性的初始值。</param> /// <param name="age">Age 属性的初始值。</param> public static User CreateUser(global::System.Int32 id, global::System.String loginPwd, global::System.Int32 friendshipPolicyId, global::System.String nickName, global::System.Int32 faceId, global::System.String sex, global::System.Int32 age) { User user = new User(); user.Id = id; user.LoginPwd = loginPwd; user.FriendshipPolicyId = friendshipPolicyId; user.NickName = nickName; user.FaceId = faceId; user.Sex = sex; user.Age = age; return user; }