Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         staff = new Member();
         staff = Staff.StaffDetail(id);
     }
     catch
     {
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 用于向 Members EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToMembers(Member member)
 {
     base.AddObject("Members", member);
 }
Esempio n. 3
0
 /// <summary>
 /// 创建新的 Member 对象。
 /// </summary>
 /// <param name="mid">Mid 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="introduction">Introduction 属性的初始值。</param>
 public static Member CreateMember(global::System.Int64 mid, global::System.String name, global::System.String introduction)
 {
     Member member = new Member();
     member.Mid = mid;
     member.Name = name;
     member.Introduction = introduction;
     return member;
 }