示例#1
0
        /// <summary>
        /// 建立新 member 物件。
        /// </summary>
        /// <param name="id">id 屬性的初始值。</param>
        /// <param name="username">username 屬性的初始值。</param>
        /// <param name="password">password 屬性的初始值。</param>
        /// <param name="name">name 屬性的初始值。</param>
        /// <param name="gender">gender 屬性的初始值。</param>
        /// <param name="birthday">birthday 屬性的初始值。</param>
        /// <param name="phone">phone 屬性的初始值。</param>
        /// <param name="address">address 屬性的初始值。</param>
        /// <param name="email">email 屬性的初始值。</param>
        /// <param name="role">role 屬性的初始值。</param>
        public static member Createmember(global::System.Int32 id, global::System.String username, global::System.String password, global::System.String name, global::System.String gender, global::System.DateTime birthday, global::System.String phone, global::System.String address, global::System.String email, global::System.Boolean role)
        {
            member member = new member();

            member.id       = id;
            member.username = username;
            member.password = password;
            member.name     = name;
            member.gender   = gender;
            member.birthday = birthday;
            member.phone    = phone;
            member.address  = address;
            member.email    = email;
            member.role     = role;
            return(member);
        }
示例#2
0
 /// <summary>
 /// 將新物件加入 member EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddTomember(member member)
 {
     base.AddObject("member", member);
 }