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
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
Properties
Code2
Gets or sets the two-character code.
public string Code2 { get; set; }
Property Value
CountryId
Gets or sets the country id.
public string CountryId { get; set; }
Property Value
IsDefault
Gets or sets the value determines whether it is default.
public bool IsDefault { get; set; }
Property Value
LanguageId
Gets or sets the language id.
[Obsolete("Is not used anymore")]
public string LanguageId { get; set; }
Property Value
MethodId
Gets or sets the method id.
public string MethodId { get; set; }
Property Value
MethodType
Gets or sets the method type.
public string MethodType { get; set; }
Property Value
RegionCode
Gets or sets the region id.
public string RegionCode { get; set; }
Property Value
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
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
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)