示例#1
0
        /// <summary>
        /// Create a new Distributor object.
        /// </summary>
        /// <param name="distributor_ID">Initial value of the Distributor_ID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        public static Distributor CreateDistributor(global::System.Int32 distributor_ID, global::System.String name)
        {
            Distributor distributor = new Distributor();

            distributor.Distributor_ID = distributor_ID;
            distributor.Name           = name;
            return(distributor);
        }
示例#2
0
 /// <summary>
 /// Delete a Distributor from the database.
 /// </summary>
 /// <param name="Product">The Distributor to be deleted</param>
 public void Delete(Distributor Distributor)
 {
     db.Distributors.DeleteObject(Distributor);
 }
示例#3
0
 /// <summary>
 /// Add a Distributor to the database.
 /// </summary>
 /// <param name="Product">The Distributor to be added</param>
 public void Add(Distributor Distributor)
 {
     db.Distributors.AddObject(Distributor);
 }
示例#4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Distributors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDistributors(Distributor distributor)
 {
     base.AddObject("Distributors", distributor);
 }