Table of Contents

Class CountryRelation

Namespace
Dynamicweb.Ecommerce.International
Assembly
Dynamicweb.Ecommerce.dll
Represents the country relation.
[Serializable]
public class CountryRelation
Inheritance
CountryRelation
Inherited Members

Constructors

CountryRelation()

Initializes a new instance of the class.
public CountryRelation()

CountryRelation(IDataReader)

Initializes a new instance of the class.
[Obsolete("Use Services.CountryRelations.GetCountryRelation instead")]
public CountryRelation(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

CountryRelation(string, string)

Initializes a new instance of the class.
[Obsolete("Use Services.CountryRelations.GetCountryRelation instead")]
public CountryRelation(string methodType, string methodId)

Parameters

methodType string
The method type.
methodId string
The method id.

CountryRelation(string, string, string)

Initializes a new instance of the class.
[Obsolete("Use Services.CountryRelations.GetCountryRelation instead")]
public CountryRelation(string methodType, string methodId, string countryId)

Parameters

methodType string
The method type.
methodId string
The method id.
countryId string
The country id.

Properties

Code2

Gets or sets the two-character code.
public string Code2 { get; set; }

Property Value

string

CountryId

Gets or sets the country id.
public string CountryId { get; set; }

Property Value

string

IsDefault

Gets or sets the value determines whether it is default.
public bool IsDefault { get; set; }

Property Value

bool

LanguageId

Gets or sets the language id.
[Obsolete("Is not used anymore")]
public string LanguageId { get; set; }

Property Value

string

MethodId

Gets or sets the method id.
public string MethodId { get; set; }

Property Value

string

MethodType

Gets or sets the method type.
public string MethodType { get; set; }

Property Value

string

RegionCode

Gets or sets the region id.
public string RegionCode { get; set; }

Property Value

string

Methods

Clone()

Clones this instance.
public CountryRelation Clone()

Returns

CountryRelation
New instance of the CountryRelation.

Delete()

Deletes this instance.
[Obsolete("Use Services.CountryRelations.Delete instead")]
public void Delete()

Delete(string)

Deletes an instance with the specified parameters.
[Obsolete("Use Services.CountryRelations.Delete instead")]
public void Delete(string code2)

Parameters

code2 string
The two-character code.

Delete(string, string, string, string)

Deletes an instance with the specified parameters.
[Obsolete("Use Services.CountryRelations.Delete instead")]
public void Delete(string code2, string methodId, string methodType, string languageId = "")

Parameters

code2 string
The two-character code.
methodId string
The method id.
methodType string
The method type.
languageId string
The language id.

GetCoutryRelations(string, string)

Gets the country relations.
[Obsolete("Use Services.CountryRelations.GetCountryRelations instead")]
public static CountryRelationCollection GetCoutryRelations(string methodId, string methodType)

Parameters

methodId string
The method id.
methodType string
The method type.

Returns

CountryRelationCollection
A collection of the CountryRelation.

GetCoutryRelations(string, string, string)

Gets the country relations.
[Obsolete("Use Services.CountryRelations.GetCountryRelation instead")]
public static CountryRelationCollection GetCoutryRelations(string countryId, string methodId, string methodType)

Parameters

countryId string
The country id.
methodId string
The method id.
methodType string
The method type.

Returns

CountryRelationCollection
A collection of the CountryRelation.

GetCoutryRelations(string, string, string, string)

Gets the country relations.
[Obsolete("Use Services.CountryRelations.GetCountryRelation instead")]
public static CountryRelationCollection GetCoutryRelations(string countryId, string regionCode, string methodId, string methodType)

Parameters

countryId string
The country id.
regionCode string
The region code.
methodId string
The method id.
methodType string
The method type.

Returns

CountryRelationCollection
A collection of the CountryRelation.

Save(string, string, string, string)

Saves an instance with the specified parameters.
[Obsolete("Use Services.CountryRelations.Save instead")]
public void Save(string methodType, string methodId, string code2, string countryId)

Parameters

methodType string
The method type.
methodId string
The method id.
code2 string
The two-chacracter code.
countryId string
The country id.
To top