Class LanguageTypeMapper
Provides methods to map between LanguageType and MA.DataPlatforms.Functions.Common.LanguageType.
Inheritance
System.Object
LanguageTypeMapper
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class LanguageTypeMapper : Object
Methods
ToMa(LanguageType)
Converts a LanguageType to a MA.DataPlatforms.Functions.Common.LanguageType.
Declaration
public static LanguageType ToMa(this LanguageType meslLanguageType)
Parameters
| Type | Name | Description |
|---|---|---|
| LanguageType | meslLanguageType | The LanguageType to convert. |
Returns
| Type | Description |
|---|---|
| MA.DataPlatforms.Functions.Common.LanguageType | The corresponding MA.DataPlatforms.Functions.Common.LanguageType. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | Thrown when the LanguageType is not recognized. |
ToMesl(LanguageType)
Converts a MA.DataPlatforms.Functions.Common.LanguageType to a LanguageType.
Declaration
public static LanguageType ToMesl(this LanguageType maLanguageType)
Parameters
| Type | Name | Description |
|---|---|---|
| MA.DataPlatforms.Functions.Common.LanguageType | maLanguageType | The MA.DataPlatforms.Functions.Common.LanguageType to convert. |
Returns
| Type | Description |
|---|---|
| LanguageType | The corresponding LanguageType. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | Thrown when the MA.DataPlatforms.Functions.Common.LanguageType is not recognized. |