Table of Contents

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

string

City

Manufacturer city
public string City { get; set; }

Property Value

string

Country

Manufacturer country
public string Country { get; set; }

Property Value

string

Description

Manufacturer description
public string Description { get; set; }

Property Value

string

Email

Manufacturer Email
public string Email { get; set; }

Property Value

string

Fax

Manufacturer fax
public string Fax { get; set; }

Property Value

string

Id

Manufacturer Id
public string Id { get; set; }

Property Value

string
Manufacturer logo
public string Logo { get; set; }

Property Value

string

Name

Manufacturer name
public string Name { get; set; }

Property Value

string

Phone

Manufacturer phone
public string Phone { get; set; }

Property Value

string

Web

Manufacturer Web address
public string Web { get; set; }

Property Value

string

ZipCode

Manufacturer ZIP code
public string ZipCode { get; set; }

Property Value

string

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

Manufacturer

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
To top