Exemple #1
0
 public MySqlOptions()
 {
     ConnectionSettings = new MySqlConnectionSettings();
     ServerVersion      = new ServerVersion(null);
     CharSetBehavior    = CharSetBehavior.AppendToAllAnsiColumns;
     AnsiCharSetInfo    = new CharSetInfo(CharSet.Latin1);
     UnicodeCharSetInfo = new CharSetInfo(CharSet.Utf8mb4);
 }
        /// <summary>
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        public MySqlOptionsExtension WithAnsiCharSetInfo(CharSetInfo charSetInfo)
        {
            var clone = (MySqlOptionsExtension)Clone();

            clone.AnsiCharSetInfo = charSetInfo;

            return(clone);
        }
Exemple #3
0
 public MySqlCompiledQueryCacheKey(
     RelationalCompiledQueryCacheKey relationalCompiledQueryCacheKey,
     ServerVersion serverVersion,
     CharSetBehavior?nullableCharSetBehavior,
     CharSetInfo ansiCharSetInfo,
     CharSetInfo unicodeCharSetInfo,
     bool noBackslashEscapes)
 {
     _relationalCompiledQueryCacheKey = relationalCompiledQueryCacheKey;
     _serverVersion           = serverVersion;
     _nullableCharSetBehavior = nullableCharSetBehavior;
     _ansiCharSetInfo         = ansiCharSetInfo;
     _unicodeCharSetInfo      = unicodeCharSetInfo;
     _noBackslashEscapes      = noBackslashEscapes;
 }