Ejemplo n.º 1
0
 /// <summary>
 /// 创建新的 Member 对象。
 /// </summary>
 /// <param name="memberID">MemberID 属性的初始值。</param>
 /// <param name="userName">UserName 属性的初始值。</param>
 /// <param name="userPassword">UserPassword 属性的初始值。</param>
 /// <param name="user_Status">User_Status 属性的初始值。</param>
 public static Member CreateMember(global::System.Int32 memberID, global::System.String userName, global::System.String userPassword, global::System.String user_Status)
 {
     Member member = new Member();
     member.MemberID = memberID;
     member.UserName = userName;
     member.UserPassword = userPassword;
     member.User_Status = user_Status;
     return member;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 用于向 Member EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToMember(Member member)
 {
     base.AddObject("Member", member);
 }