/// <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); }
/// <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); }
/// <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); }
/// <summary> /// Deprecated Method for adding a new object to the Distributors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDistributors(Distributor distributor) { base.AddObject("Distributors", distributor); }