|
204 | 204 | // abc.hello will be Abc_Hello. |
205 | 205 | public static bool PrependSchemaName = true; // Control if the schema name is prepended to the table name |
206 | 206 | public static string DefaultSchema = null; // Set via DatabaseReader.DefaultSchema() |
207 | | - public static string DefaultCollation = null; // Set via DatabaseReader.DefaultCollation() |
208 | 207 |
|
209 | 208 | // Table Suffix *********************************************************************************************************************** |
210 | 209 | // Appends the suffix to the generated classes names |
@@ -12183,7 +12182,6 @@ and limitations under the License. |
12183 | 12182 |
|
12184 | 12183 | // Database specific |
12185 | 12184 | protected abstract string DefaultSchema(DbConnection conn); |
12186 | | - protected abstract string DefaultCollation(DbConnection conn); |
12187 | 12185 | protected abstract string SpecialQueryFlags(); |
12188 | 12186 | protected abstract bool HasTemporalTableSupport(); |
12189 | 12187 |
|
@@ -12262,7 +12260,6 @@ and limitations under the License. |
12262 | 12260 | } |
12263 | 12261 |
|
12264 | 12262 | Settings.DefaultSchema = DefaultSchema(conn); |
12265 | | - Settings.DefaultCollation = DefaultCollation(conn); |
12266 | 12263 | } |
12267 | 12264 | } |
12268 | 12265 |
|
@@ -13379,11 +13376,6 @@ and limitations under the License. |
13379 | 13376 | return "mydb"; |
13380 | 13377 | } |
13381 | 13378 |
|
13382 | | - protected override string DefaultCollation(DbConnection conn) |
13383 | | - { |
13384 | | - return null; |
13385 | | - } |
13386 | | - |
13387 | 13379 | protected override string SpecialQueryFlags() |
13388 | 13380 | { |
13389 | 13381 | return string.Empty; |
@@ -13514,11 +13506,6 @@ and limitations under the License. |
13514 | 13506 | return "system"; |
13515 | 13507 | } |
13516 | 13508 |
|
13517 | | - protected override string DefaultCollation(DbConnection conn) |
13518 | | - { |
13519 | | - return null; |
13520 | | - } |
13521 | | - |
13522 | 13509 | protected override string SpecialQueryFlags() |
13523 | 13510 | { |
13524 | 13511 | return string.Empty; |
@@ -13643,11 +13630,6 @@ and limitations under the License. |
13643 | 13630 | return "dbo"; |
13644 | 13631 | } |
13645 | 13632 |
|
13646 | | - protected override string DefaultCollation(DbConnection conn) |
13647 | | - { |
13648 | | - return null; |
13649 | | - } |
13650 | | - |
13651 | 13633 | protected override string SpecialQueryFlags() |
13652 | 13634 | { |
13653 | 13635 | return string.Empty; |
@@ -13895,11 +13877,6 @@ ORDER BY R.specific_schema, R.routine_name, R.routine_type;"; |
13895 | 13877 | return "public"; |
13896 | 13878 | } |
13897 | 13879 |
|
13898 | | - protected override string DefaultCollation(DbConnection conn) |
13899 | | - { |
13900 | | - return null; |
13901 | | - } |
13902 | | - |
13903 | 13880 | protected override string SpecialQueryFlags() |
13904 | 13881 | { |
13905 | 13882 | return string.Empty; |
@@ -14444,11 +14421,6 @@ SELECT * FROM MultiContext.ForeignKey;"; |
14444 | 14421 | return "dbo"; |
14445 | 14422 | } |
14446 | 14423 |
|
14447 | | - protected override string DefaultCollation(DbConnection conn) |
14448 | | - { |
14449 | | - return null; |
14450 | | - } |
14451 | | - |
14452 | 14424 | protected override string SpecialQueryFlags() |
14453 | 14425 | { |
14454 | 14426 | return string.Empty; |
@@ -15483,31 +15455,6 @@ SELECT SPECIFIC_SCHEMA, SPECIFIC_NAME, ROUTINE_TYPE, RETURN_DATA_TYPE, ORDINAL_P |
15483 | 15455 | return "dbo"; |
15484 | 15456 | } |
15485 | 15457 |
|
15486 | | - protected override string DefaultCollation(DbConnection conn) |
15487 | | - { |
15488 | | - try |
15489 | | - { |
15490 | | - var cmd = GetCmd(conn); |
15491 | | - if (cmd != null) |
15492 | | - { |
15493 | | - cmd.CommandText = string.Format("SELECT collation_name FROM sys.databases WHERE name = '{0}'", conn.Database); |
15494 | | - using (var rdr = cmd.ExecuteReader()) |
15495 | | - { |
15496 | | - if (rdr.Read()) |
15497 | | - { |
15498 | | - return rdr[0].ToString(); |
15499 | | - } |
15500 | | - } |
15501 | | - } |
15502 | | - } |
15503 | | - catch |
15504 | | - { |
15505 | | - // Ignored |
15506 | | - } |
15507 | | - |
15508 | | - return null; |
15509 | | - } |
15510 | | - |
15511 | 15458 | protected override string SpecialQueryFlags() |
15512 | 15459 | { |
15513 | 15460 | if (Settings.IncludeQueryTraceOn9481Flag) |
|
0 commit comments