The DotCodesService allows querying the dotcodes table.
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