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