Skip to content

Commit

Permalink
Fix #13 Oracle BindByName
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Willey committed Aug 9, 2016
1 parent 561af12 commit 2272872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ protected void EnsureOracleBindByName(DbCommand command)
//Oracle.DataAccess.Client only binds first parameter match unless BindByName=true
//so we violate LiskovSP (in reflection to avoid dependency on ODP)
#if !COREFX
var bindByName = typeof(DbCommand).GetProperty("BindByName");
var bindByName = command.GetType().GetProperty("BindByName");
#else
var bindByName = typeof(DbCommand).GetTypeInfo().GetDeclaredProperty("BindByName");
var bindByName = command.GetType().GetTypeInfo().GetDeclaredProperty("BindByName");
#endif
if (bindByName != null)
{
Expand Down
2 changes: 1 addition & 1 deletion DatabaseSchemaReader/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"summary": "A simple, cross-database tool to read database metadata",
"tags": [ "ADO", "Entity Framework Code First", "SQLServer", "SQLite", "Oracle", "MySQL", "PostgreSql", "Schema", "Database" ],
"owners": [ "Martin Willey" ],
"releaseNotes": "Update to NetStandard",
"releaseNotes": "2.1: CodeGen for EF Core; Oracle fixes",
"projectUrl": "https://github.com/martinjw/dbschemareader",
"licenseUrl": "http://www.microsoft.com/en-us/openness/licenses.aspx#MPL",
"repository": {
Expand Down

0 comments on commit 2272872

Please sign in to comment.