Can someone post a “working” example of the Enterprise Application Data block, to call a SP.
All the sample code I find starts with
// Create DataBase Instance
Database db = DatabaseFactory.CreateDatabase();
But my code throws an object reference not set to an instance….
Do you have your application configuration setup correctly?
Here is a quick example on calling a stored procedure via Enterprise Library Data Access Block:
And the corresponding app.config
I ran into that issue when I didn’t have the defaultDatabase set to a corresponding connection string.