jamiehumphries / Elmah.SqlServer.EFInitializer

Automatically creates an Elmah database on SQL Server using Entity Framework migrations.
http://jamiehumphries.github.io/Elmah.SqlServer.EFInitializer/
MIT License
4 stars 6 forks source link

Methods for running stored procedures #3

Open justinyoo opened 9 years ago

justinyoo commented 9 years ago

Hi, Jamie.

Thanks for this library. I wonder if I can add a couple of methods to directly call stored procedures within the ElmahContext object or not, such as GetErrorXml or LogError. If you don't mind, I'd like send a pull request to you for review.

p10tyr commented 9 years ago

You can call the stored procedures via the context, or make your own context. As long as the tables are there, on the DB of the context, you can query them outside of the EF DLL.

justinyoo commented 9 years ago

I know how to call stored procedures in EF. What I want to achieve is that I want to add those three stored procedures originally provided by Atif (creator of ELMAH), into 'ElmahContext'. If you don't mind, I'll send a pull request that I made changes for your review.