Пример #1
0
        /// <summary>
        /// Create a new DistributorContact object.
        /// </summary>
        /// <param name="contact_ID">Initial value of the Contact_ID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        public static DistributorContact CreateDistributorContact(global::System.Int32 contact_ID, global::System.String name)
        {
            DistributorContact distributorContact = new DistributorContact();

            distributorContact.Contact_ID = contact_ID;
            distributorContact.Name       = name;
            return(distributorContact);
        }
Пример #2
0
 /// <summary>
 /// Add a DistributorContact to the database.
 /// </summary>
 /// <param name="Product">The DistributorContact to be added</param>
 public void Add(DistributorContact DistributorContact)
 {
     db.DistributorContacts.AddObject(DistributorContact);
 }
Пример #3
0
 /// <summary>
 /// Delete a DistributorContact from the database.
 /// </summary>
 /// <param name="Product">The DistributorContact to be deleted</param>
 public void Delete(DistributorContact DistributorContact)
 {
     db.DistributorContacts.DeleteObject(DistributorContact);
 }
Пример #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the DistributorContacts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDistributorContacts(DistributorContact distributorContact)
 {
     base.AddObject("DistributorContacts", distributorContact);
 }