With a Dapper. SimpleCRUD T4 Template generated entity class is not successful, quote is Failed to read the database schema - try to load the Oracle client library cause BadImageFormatException, if in the installation of 32 bit Oracle client component to run 64 - bit mode, will appear this problem,
But I checked the local installation of Oracle client is, indeed, a 64 - bit
In this way also can connect and apply to the Data, using the System. Data. OracleClient;
Public static DataSet Query (string SQLString)
{
Using (OracleConnection connection=new OracleConnection (the connectionString))
{
The DataSet ds=new DataSet ();
Try
{
Connection. The Open ();
OracleDataAdapter command=new OracleDataAdapter (SQLString, connection);
Command. The Fill (ds, "ds");
}
The catch (System. Data. OracleClient. OracleException ex)
{
Throw new Exception (ex. Message);
}
The finally
{
Connection. The Close ();
}
Return the ds;
}
}
PLSQL also can successfully connected, is to use Dapper SimpleCRUD T4 template generated when be born, has been reported that mistake
Who met help say what reason, thank you enough