I don’t see a lot of posts about this but it is possible to achieve. Classes Example Stored Procedure Using a DbSet … this DOES NOT WORK if you are. read more…
I suspect I’m not alone in that even though I’m using Code First for my data access there are points where it just makes more sense to encapsulate a complex. read more…
Quite simple actually … make sure the connection string in your config file is named the same as your context class OR make sure you do something like this public. read more…
I was recently looking at some changes I’d made to a project I’m working on using the Entity Framework for data access. I realised that as I had moved to. read more…
Loading Entity Framework Navigation Properties with Stored Procedures
I don’t see a lot of posts about this but it is possible to achieve. Classes Example Stored Procedure Using a DbSet … this DOES NOT WORK if you are. read more…
Continue Reading
Entity Framework Code First Migrations and Running SQL Scripts
I suspect I’m not alone in that even though I’m using Code First for my data access there are points where it just makes more sense to encapsulate a complex. read more…
Continue Reading
Enabling Entity Framework Code First Migrations ProviderIncompatibleException
Quite simple actually … make sure the connection string in your config file is named the same as your context class OR make sure you do something like this public. read more…
Continue Reading
Entity Framework Code-First Stored Procedures & Foreign Key Entities
I was recently looking at some changes I’d made to a project I’m working on using the Entity Framework for data access. I realised that as I had moved to. read more…
Continue Reading