TechTalk Genome v4.2

<StringEncoding> Element

Specifies the default encoding of string values used in the schema.

<StringEncoding encoding=("Ansi"|"Unicode") [codepage="collation-type"] />
encoding
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.
codepage
A Microsoft SQL Server collation name used for non-Unicode strings. If omitted, the database default collation is used.

Remarks

String values can be stored in the underlying relational database system with different encodings. The <StringEncoding> element can be used to specify the default string encoding model for the schema. The specified encoding type determines how strings are handled in the following areas:

For Oracle databases (where the GUID data type is represented as a string database field), the GUID mapping defaults can be changed through the <GuidStringEncoding> element element.

Requirements

Type: TechTalk.Genome.Schema.Builder.Xml.StringEncodingXmlData

Assembly: TechTalk.Genome.dll

Version: 4.2.11

Editions: Professional, Evaluation, Express

Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2

See Also

String.ToAnsi() Method | Database Type Modifiers | XmlMapping.Elements.PersistentField