TechTalk Genome v4.2

<GuidStringEncoding> Element

Specifies the default encoding of GUID values (represented as string) used in Oracle schemas.

<GuidStringEncoding encoding= ("Ansi"|"Unicode") [formatSpecifier="format-specifier"fieldLength="field-length"] />
A value of Ansi specifies that string values should be converted to non-Unicode using the specified codepage. A value of Unicode specifies that string values should be handled with Unicode encoding. The default is Unicode.
A .NET format specifier ("N", "D", "B", "P" or "X") to describe how GUID values should be converted to string. The default value is "D" (00000000-0000-0000-0000-000000000000).
An integer value specifying the field length for storing GUID values. The default value is 36.


This element can only be used in schemas mapped to Oracle databases.

With this mapping feature, you can change the default mapping details of the GUID data types for the entire schema. The feature woks similarly to <StringEncoding> element . The default behavior uses ANSI mapping.

If formatSpecifier is defined, the field lenght should be also set appropriately.


Type: TechTalk.Genome.Mapping.GuidStringEncodingXmlData

Assembly: TechTalk.Genome.dll

Version: 4.2.11

Editions: Professional, Evaluation

Database Platforms: Oracle 9i Release 2, Oracle 10g Release 2

See Also

String.ToAnsi() Method | Database Type Modifiers | XmlMapping.Elements.PersistentField | <StringEncoding> Element