Problem : i am working on a legacy oracle database that uses character literals T and F in the database […]
Tag: entity-framework
ADO.NET Entity Framework: Update Wizard will not add tables
Problem : I added a new ADO.Net Entity Data Model into my project and used the Update Wizard to add […]
Test to see if Entity Framework is connected to something
Problem : When you create a new EntityCollection object, the connection doesn’t attempt to open the database until you try […]
Entity Framework – Inserting entity with multiple models and databases
Problem : I have my domain split into multiple Entity Framework models. I have some shared entities that span multiple […]
Is there a better way to update my entities with the Entity framework?
Problem : I have not really a “problem” but I found the way I develop this code not really well. […]
LINQ is Generating Extra IS NULL Condition in SQL Statement
Problem : I’m writing some LINQ to fetch records based on an email, however, the generated SQL contains an additional […]
Delete all entities in Entity Framework
Problem : I want to delete content of all tables (all entities) using Entity Framework 4+. How can this be […]
Generate POCO classes from model using T4 templates vs. EF4.1 simplified API Model First approach
Problem : I have model created with visual designer. Now I want to have POCO classes generated from it. In […]
DbMigrator – verbose code-first migration
Problem : When using Package Manager Console, you can run the following command: PM> Update-Database -Verbose The -Verbose switch will […]
Why does Add-Migration sometimes create duplicate migrations?
Problem : I am facing a weird problem with code first migrations in Entity Framework version 5. Sometimes Update-Database fails […]