partial void UpdateSupplier(Supplier instance);
 partial void DeleteSupplier(Supplier instance);
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Suppliers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSuppliers(Supplier supplier)
 {
     base.AddObject("Suppliers", supplier);
 }
 partial void InsertSupplier(Supplier instance);
Пример #5
0
 /// <summary>
 /// Create a new Supplier object.
 /// </summary>
 /// <param name="supplierID">Initial value of the SupplierID property.</param>
 /// <param name="companyName">Initial value of the CompanyName property.</param>
 public static Supplier CreateSupplier(global::System.Int32 supplierID, global::System.String companyName)
 {
     Supplier supplier = new Supplier();
     supplier.SupplierID = supplierID;
     supplier.CompanyName = companyName;
     return supplier;
 }
Пример #6
0
        public void Insert(string CompanyName,string ContactName,string ContactTitle,string Address,string City,string Region,string PostalCode,string Country,string Phone,string Fax,string HomePage)
        {
            Supplier item = new Supplier();

            item.CompanyName = CompanyName;

            item.ContactName = ContactName;

            item.ContactTitle = ContactTitle;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.Phone = Phone;

            item.Fax = Fax;

            item.HomePage = HomePage;

            item.Save(UserName);
        }
Пример #7
0
        public void Update(int SupplierID,string CompanyName,string ContactName,string ContactTitle,string Address,string City,string Region,string PostalCode,string Country,string Phone,string Fax,string HomePage)
        {
            Supplier item = new Supplier();
            item.MarkOld();
            item.IsLoaded = true;

            item.SupplierID = SupplierID;

            item.CompanyName = CompanyName;

            item.ContactName = ContactName;

            item.ContactTitle = ContactTitle;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.Phone = Phone;

            item.Fax = Fax;

            item.HomePage = HomePage;

            item.Save(UserName);
        }
Пример #8
0
 public bool Destroy(object SupplierID)
 {
     return(Supplier.Destroy(SupplierID) == 1);
 }
Пример #9
0
 public bool Delete(object SupplierID)
 {
     return(Supplier.Delete(SupplierID) == 1);
 }