C# Class MySql.Data.MySqlClient.CharSetMap

Summary description for CharSetMap.
显示文件 Open project: elevate/mysqlconnector-.net Class Usage Examples

Public Methods

Method Description
GetCharacterSet ( MySql.Data.Common.DBVersion version, string CharSetName ) : CharacterSet
GetEncoding ( MySql.Data.Common.DBVersion version, string CharSetName ) : Encoding

Returns the text encoding for a given MySQL character set name

Private Methods

Method Description
CharSetMap ( ) : System
GetDefaultCollation ( string charset, MySqlConnection connection ) : string
GetMaxLength ( string charset, MySqlConnection connection ) : int
InitCollections ( MySqlConnection connection ) : void
InitializeMapping ( ) : void

LoadCharsetMap ( ) : void

Method Details

GetCharacterSet() public static method

public static GetCharacterSet ( MySql.Data.Common.DBVersion version, string CharSetName ) : CharacterSet
version MySql.Data.Common.DBVersion
CharSetName string
return CharacterSet

GetEncoding() public static method

Returns the text encoding for a given MySQL character set name
public static GetEncoding ( MySql.Data.Common.DBVersion version, string CharSetName ) : Encoding
version MySql.Data.Common.DBVersion Version of the connection requesting the encoding
CharSetName string Name of the character set to get the encoding for
return System.Text.Encoding