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.
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.
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.
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.
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.
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.
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.
Continue Reading