public void AddSupplier(Supplier addThis) { Suppliers.Add(addThis); }
/// <summary> /// Deprecated Method for adding a new object to the Suppliers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSuppliers(Supplier supplier) { base.AddObject("Suppliers", supplier); }
public Supplier Clone() { Supplier s = new Supplier(this.Name, this.Capacity); return s; }
/// <summary> /// Create a new Supplier object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="supplier1">Initial value of the Supplier1 property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="postcode">Initial value of the Postcode property.</param> /// <param name="streetAddress">Initial value of the StreetAddress property.</param> /// <param name="townFK">Initial value of the TownFK property.</param> public static Supplier CreateSupplier(global::System.Int32 id, global::System.String supplier1, global::System.String email, global::System.String postcode, global::System.String streetAddress, global::System.Int32 townFK) { Supplier supplier = new Supplier(); supplier.Id = id; supplier.Supplier1 = supplier1; supplier.Email = email; supplier.Postcode = postcode; supplier.StreetAddress = streetAddress; supplier.TownFK = townFK; return supplier; }