Exemplo n.º 1
0
 /// <summary>
 /// 用于向 tb_user EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddTotb_user(tb_user tb_user)
 {
     base.AddObject("tb_user", tb_user);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 创建新的 tb_user 对象。
 /// </summary>
 /// <param name="id">id 属性的初始值。</param>
 /// <param name="name">name 属性的初始值。</param>
 /// <param name="password">password 属性的初始值。</param>
 /// <param name="question">question 属性的初始值。</param>
 /// <param name="answer">answer 属性的初始值。</param>
 /// <param name="consume">consume 属性的初始值。</param>
 /// <param name="realname">realname 属性的初始值。</param>
 /// <param name="card">card 属性的初始值。</param>
 /// <param name="tel">tel 属性的初始值。</param>
 /// <param name="phone">phone 属性的初始值。</param>
 /// <param name="email">Email 属性的初始值。</param>
 /// <param name="qQ">QQ 属性的初始值。</param>
 /// <param name="code">code 属性的初始值。</param>
 /// <param name="address">address 属性的初始值。</param>
 /// <param name="addtime">addtime 属性的初始值。</param>
 /// <param name="isfreeze">isfreeze 属性的初始值。</param>
 /// <param name="shopping">shopping 属性的初始值。</param>
 /// <param name="openid">openid 属性的初始值。</param>
 /// <param name="location">location 属性的初始值。</param>
 public static tb_user Createtb_user(global::System.Int32 id, global::System.String name, global::System.String password, global::System.String question, global::System.String answer, global::System.Single consume, global::System.String realname, global::System.String card, global::System.String tel, global::System.String phone, global::System.String email, global::System.String qQ, global::System.String code, global::System.String address, global::System.DateTime addtime, global::System.Int32 isfreeze, global::System.String shopping, global::System.String openid, global::System.String location)
 {
     tb_user tb_user = new tb_user();
     tb_user.id = id;
     tb_user.name = name;
     tb_user.password = password;
     tb_user.question = question;
     tb_user.answer = answer;
     tb_user.consume = consume;
     tb_user.realname = realname;
     tb_user.card = card;
     tb_user.tel = tel;
     tb_user.phone = phone;
     tb_user.Email = email;
     tb_user.QQ = qQ;
     tb_user.code = code;
     tb_user.address = address;
     tb_user.addtime = addtime;
     tb_user.isfreeze = isfreeze;
     tb_user.shopping = shopping;
     tb_user.openid = openid;
     tb_user.location = location;
     return tb_user;
 }