Class Manufacturer
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a manufacturer of products.
[Serializable]
public class Manufacturer
- Inheritance
-
Manufacturer
- Inherited Members
Constructors
Manufacturer()
Initializes a new instance of Manufacturer
public Manufacturer()
Manufacturer(Manufacturer)
Initializes a new instance of an object.
[Obsolete("Do not use.")]
public Manufacturer(Manufacturer copyFrom)
Parameters
copyFrom
Manufacturer- Object to copy the state from.
Exceptions
- ArgumentNullException
copyFrom
is null.
Manufacturer(IDataReader)
Create new manufacturer using properties from given data reader
[Obsolete("Use Services.Manufacturers instead.")]
public Manufacturer(IDataReader dataReader)
Parameters
dataReader
IDataReader- DataReader with selected manufacturer properties
Manufacturer(string)
Create new object by manufacturer ID
[Obsolete("Use Services.Manufacturers.GetManufacturerById instead.")]
public Manufacturer(string id)
Parameters
id
string- Manufacturer ID
Properties
Address
Manufacturer address
public string Address { get; set; }
Property Value
City
Manufacturer city
public string City { get; set; }
Property Value
Country
Manufacturer country
public string Country { get; set; }
Property Value
Description
Manufacturer description
public string Description { get; set; }
Property Value
Manufacturer Email
public string Email { get; set; }
Property Value
Fax
Manufacturer fax
public string Fax { get; set; }
Property Value
Id
Manufacturer Id
public string Id { get; set; }
Property Value
Logo
Manufacturer logo
public string Logo { get; set; }
Property Value
Name
Manufacturer name
public string Name { get; set; }
Property Value
Phone
Manufacturer phone
public string Phone { get; set; }
Property Value
Web
Manufacturer Web address
public string Web { get; set; }
Property Value
ZipCode
Manufacturer ZIP code
public string ZipCode { get; set; }
Property Value
Methods
ClearCache()
Clears the cache.
[Obsolete("Use Services.Manufacturers.ClearCache instead.")]
public static void ClearCache()
Clone()
Create in-memory copy of manufacturer
[Obsolete("Do not use")]
public Manufacturer Clone()
Returns
- Manufacturer
- Copied manufacturer
Copy()
Create a copy of manufacturer and save it to database
[Obsolete("Do not use")]
public Manufacturer Copy()
Returns
- Manufacturer
- Copied manufacturer
CopyTo(Manufacturer)
Copies that state of the current object into the given one.
[Obsolete("Do not use")]
public virtual void CopyTo(Manufacturer manufacturerCopy)
Parameters
manufacturerCopy
Manufacturer- Object to copy the state to.
Exceptions
- ArgumentNullException
manufacturerCopy
is null.
Delete()
Delete manufacturer
[Obsolete("Use Services.Manufacturers.Delete instead.")]
public void Delete()
Delete(string)
Delete manufacturer by ID
[Obsolete("Use Services.Manufacturers.Delete instead.")]
public void Delete(string manufacturerId)
Parameters
manufacturerId
string- Manufacturer ID
Fill(IDataReader)
Fill current object with properties from given data reader
[Obsolete("Do not use.")]
public void Fill(IDataReader dataReader)
Parameters
dataReader
IDataReader- DataReader with selected manufacturer properties
GetManufacturerById(string)
[Obsolete("Use Services.Manufacturers.GetManufacturerById instead.")]
public static Manufacturer GetManufacturerById(string id)
Parameters
id
string
Returns
GetManufacturers()
Select all manufacturers from database
[Obsolete("Use Services.Manufacturers.GetManufacturers instead.")]
public static ManufacturerCollection GetManufacturers()
Returns
- ManufacturerCollection
- Manufacturer collection
Save(string)
Save manufacturer using provided ID
[Obsolete("Use Services.Manufacturers.Save instead.")]
public void Save(string manufacturerId)
Parameters
manufacturerId
string- Manufacturer ID
Remarks
If manufacturer for given ID is not found, a new one created with auto-generated ID