Exemplo n.º 1
0
        /// <summary>
        /// 创建新的 tAccount 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        /// <param name="userName">UserName 属性的初始值。</param>
        /// <param name="password">Password 属性的初始值。</param>
        /// <param name="email">Email 属性的初始值。</param>
        /// <param name="registerTime">RegisterTime 属性的初始值。</param>
        public static tAccount CreatetAccount(global::System.Int32 id, global::System.String userName, global::System.String password, global::System.String email, global::System.DateTime registerTime)
        {
            tAccount tAccount = new tAccount();

            tAccount.Id           = id;
            tAccount.UserName     = userName;
            tAccount.Password     = password;
            tAccount.Email        = email;
            tAccount.RegisterTime = registerTime;
            return(tAccount);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 用于向 tAccounts EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddTotAccounts(tAccount tAccount)
 {
     base.AddObject("tAccounts", tAccount);
 }