Skip to content

Commit dcc7c1c

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
GH-3530: The Sql2008ClientDriver does not implement the DbDataReader.Get* methods. Enacapsulte their DbDataReader with the DirectCastDbDataReader.
1 parent d300e0b commit dcc7c1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NHibernate/Driver/Sql2008ClientDriver.cs

+5
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ protected override void InitializeParameter(DbParameter dbParam, string name, Sq
3434

3535
/// <inheritdoc />
3636
public override DateTime MinDate => DateTime.MinValue;
37+
38+
public override DbDataReader ExecuteReader(DbCommand cmd)
39+
{
40+
return new DirectCastDbDataReader(cmd.ExecuteReader());
41+
}
3742
}
3843
}

0 commit comments

Comments
 (0)