コード例 #1
0
ファイル: Conseil.cs プロジェクト: Flightan/Chef.Net
        /// <summary>
        /// Conversion DBO -> Entity
        /// </summary>
        public static T_Conseil ConvertToEntity(DBO.Conseil conseil)
        {
            T_Conseil entity = new T_Conseil();

            if (conseil != null)
            {
                entity.nom = conseil.Nom;
                entity.idCreateur = conseil.idCreateur;
                entity.texte = conseil.Text;
                entity.dateCreation = conseil.DateCreation;
            }

            return entity;
        }
コード例 #2
0
 /// <summary>
 /// Create a new T_Conseil object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="idCreateur">Initial value of the idCreateur property.</param>
 /// <param name="texte">Initial value of the texte property.</param>
 /// <param name="nom">Initial value of the nom property.</param>
 public static T_Conseil CreateT_Conseil(global::System.Int64 id, global::System.Int64 idCreateur, global::System.String texte, global::System.String nom)
 {
     T_Conseil t_Conseil = new T_Conseil();
     t_Conseil.id = id;
     t_Conseil.idCreateur = idCreateur;
     t_Conseil.texte = texte;
     t_Conseil.nom = nom;
     return t_Conseil;
 }
コード例 #3
0
ファイル: Conseil.cs プロジェクト: Flightan/Chef.Net
        /// <summary>
        /// Conversion Entity -> DBO
        /// </summary>
        public static DBO.Conseil ConvertToDBO(T_Conseil conseil)
        {
            DBO.Conseil dbo = new DBO.Conseil();

            if (conseil != null)
            {
                dbo.Nom = conseil.nom;
                dbo.idCreateur = Convert.ToInt16(conseil.idCreateur);
                dbo.Id = Convert.ToInt16(conseil.id);
                dbo.Text = conseil.texte;
                dbo.DateCreation = Convert.ToDateTime(conseil.dateCreation);
            }

            return dbo;
        }
コード例 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the T_Conseil EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToT_Conseil(T_Conseil t_Conseil)
 {
     base.AddObject("T_Conseil", t_Conseil);
 }