Skip to content

Commit 2d2f1fa

Browse files
author
Sam Hanes
committed
Remove Mono check for sql types to avoid netcore on linux issues
1 parent 31564e3 commit 2d2f1fa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/SqlClient.DesignTime/SqlClientExtensions.fs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,7 @@ type SqlConnection with
441441
if not <| dataTypeMappings.ContainsKey this.ConnectionString
442442
then
443443
assert (this.State = ConnectionState.Open)
444-
445-
let runningOnMono = try System.Type.GetType("Mono.Runtime") <> null with _ -> false
446-
444+
447445
let sqlEngineTypes = [|
448446
use cmd = new SqlCommand("
449447
SELECT t.name, t.system_type_id, t.user_type_id, t.is_table_type, s.name as schema_name, t.is_user_defined
@@ -452,10 +450,8 @@ type SqlConnection with
452450
", this)
453451
use reader = cmd.ExecuteReader()
454452
while reader.Read() do
455-
// #105 - disable assembly types when running on mono, because GetSchema() doesn't return these types on mono.
456453
let systemTypeId = unbox<byte> reader.["system_type_id"]
457-
if not runningOnMono || systemTypeId <> 240uy then
458-
yield
454+
yield
459455
string reader.["name"],
460456
int systemTypeId,
461457
unbox<int> reader.["user_type_id"],

0 commit comments

Comments
 (0)