예제 #1
0
        /// <summary>
        /// Conversion DBO -> Entity
        /// </summary>
        public static T_Ingredient ConvertToEntity(DBO.Ingredient ingredient)
        {
            T_Ingredient entity = new T_Ingredient();

            if (ingredient != null)
            {
                entity.nom = ingredient.Nom;
            }

            return entity;
        }
예제 #2
0
        /// <summary>
        /// Conversion Entity -> DBO
        /// </summary>
        public static DBO.Ingredient ConvertToDBO(T_Ingredient ingredient)
        {
            DBO.Ingredient dbo = new DBO.Ingredient();

            if (ingredient != null)
            {
                dbo.Nom = ingredient.nom;
                dbo.Id = Convert.ToInt16(ingredient.id);
            }

            return dbo;
        }
예제 #3
0
 /// <summary>
 /// Create a new T_Ingredient object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="nom">Initial value of the nom property.</param>
 public static T_Ingredient CreateT_Ingredient(global::System.Int64 id, global::System.String nom)
 {
     T_Ingredient t_Ingredient = new T_Ingredient();
     t_Ingredient.id = id;
     t_Ingredient.nom = nom;
     return t_Ingredient;
 }
예제 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the T_Ingredient EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToT_Ingredient(T_Ingredient t_Ingredient)
 {
     base.AddObject("T_Ingredient", t_Ingredient);
 }