/// <summary>
 /// Deprecated Method for adding a new object to the T_User EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToT_User(T_User t_User)
 {
     base.AddObject("T_User", t_User);
 }
示例#2
0
文件: User.cs 项目: Flightan/Chef.Net
        /// <summary>
        /// Conversion Entity -> DBO
        /// </summary>
        public static DBO.User ConvertToDBO(T_User user)
        {
            DBO.User dbo = new DBO.User();

            if (user != null)
            {
                dbo.Info = user.info;
                dbo.Name = user.nom;
                dbo.Password = user.password;
                dbo.Email = user.email;
                dbo.Id = Convert.ToInt16(user.id);
            }

            return dbo;
        }
 /// <summary>
 /// Create a new T_User object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="password">Initial value of the password property.</param>
 /// <param name="nom">Initial value of the nom property.</param>
 public static T_User CreateT_User(global::System.Int64 id, global::System.String password, global::System.String nom)
 {
     T_User t_User = new T_User();
     t_User.id = id;
     t_User.password = password;
     t_User.nom = nom;
     return t_User;
 }
示例#4
0
文件: User.cs 项目: Flightan/Chef.Net
        /// <summary>
        /// Conversion DBO -> Entity
        /// </summary>
        public static T_User ConvertToEntity(DBO.User user)
        {
            T_User entity = new T_User();

            if (user != null)
            {
                entity.info = user.Info;
                entity.nom = user.Name;
                entity.password = user.Password;
                entity.email = user.Email;
            }

            return entity;
        }