Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

Navigation (EnterpriseLibrary)



Search the wiki
»

DotCodesService

RSS
Modified on Wednesday, 26 October 2011 02:25 PM by 156.75.200.43 Categorized as Uncategorized
The DotCodesService allows querying the dotcodes table.

Table of Contents [Hide/Show]


GetCodes
      Signature
      Code Sample
GetCode
      Signature
      Code Sample
GetRelatedCodes
      Signature
      Code Sample
GetRelatedCode
      Signature
      Code Sample
GetMetadata
      Signature
      Code Sample
See Also


GetCodes

Gets a all of the dotcodes for a dotcode column.

Signature

IEnumerable<DotCode> GetCodes(string columnName, DotCodeSortOrder sortOrder)

Code Sample

using (var c = new FDOT.Enterprise.Communication.Framework.Core.ClientNetTcpBindingChannelProvider<IDotCodeService>())
{
     var codes = c.Proxy.GetCodes("GEODIST", DotCodeSortOrder.ByCodeDescription);
}

GetCode

Gets a DotCode for a given column and code value.

Signature

DotCode GetCode(string columnName, string codeValue)

Code Sample

using (var c = new FDOT.Enterprise.Communication.Framework.Core.ClientNetTcpBindingChannelProvider<IDotCodeService>())
{
     var code = c.Proxy.GetCode("GEODIST", "01");
}

GetRelatedCodes

Gets related dotcodes for a given codevalue and related column.

Signature

IEnumerable<DotCode> GetRelatedCodes(string columnName, string codeValue, string relatedColumnName, DotCodeSortOrder sortOrder)

Code Sample

using (var c = new FDOT.Enterprise.Communication.Framework.Core.ClientNetTcpBindingChannelProvider<IDotCodeService>())
{
     var codes = c.Proxy.GetRelatedCodes("GEODIST", "07", "CONTYDOT", DotCodeSortOrder.ByCodeValue);
}

GetRelatedCode

Gets a related dotcode for a given codevalue and a related columnName.

Signature

DotCode GetRelatedCode(string columnName, string codeValue, string relatedColumnName)

Code Sample

using (var c = new FDOT.Enterprise.Communication.Framework.Core.ClientNetTcpBindingChannelProvider<IDotCodeService>())
{
     var code = c.Proxy.GetRelatedCodes("GEODIST", "07", "CONTYDOT");
}

GetMetadata

Gets metadata for a dotcode column.

Signature

DotCodeMetadata GetMetadata(string columnName)

Code Sample

See Also

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.