Exemplo n.º 1
0
 /// <summary>
 /// 用于向 Member EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToMember(Member member)
 {
     base.AddObject("Member", member);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 创建新的 Member 对象。
 /// </summary>
 /// <param name="memberID">MemberID 属性的初始值。</param>
 /// <param name="memberName">MemberName 属性的初始值。</param>
 /// <param name="email">Email 属性的初始值。</param>
 /// <param name="loginID">LoginID 属性的初始值。</param>
 /// <param name="loginPwd">LoginPwd 属性的初始值。</param>
 /// <param name="createdByID">CreatedByID 属性的初始值。</param>
 /// <param name="lastModifiedByID">LastModifiedByID 属性的初始值。</param>
 /// <param name="createdDate">CreatedDate 属性的初始值。</param>
 /// <param name="lastModifiedDate">LastModifiedDate 属性的初始值。</param>
 public static Member CreateMember(global::System.Guid memberID, global::System.String memberName, global::System.String email, global::System.String loginID, global::System.String loginPwd, global::System.Guid createdByID, global::System.Guid lastModifiedByID, global::System.DateTime createdDate, global::System.DateTime lastModifiedDate)
 {
     Member member = new Member();
     member.MemberID = memberID;
     member.MemberName = memberName;
     member.Email = email;
     member.LoginID = loginID;
     member.LoginPwd = loginPwd;
     member.CreatedByID = createdByID;
     member.LastModifiedByID = lastModifiedByID;
     member.CreatedDate = createdDate;
     member.LastModifiedDate = lastModifiedDate;
     return member;
 }