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 { } }
/// <summary> /// 用于向 Members EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToMembers(Member member) { base.AddObject("Members", member); }
/// <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; }