Skip to content Skip to sidebar Skip to footer
Showing posts with the label Code First

In Code First The Insert Statement Conflicted With The Foreign Key Constraint

I just started using Code first approach for creating databases. I have following 3 tables : public… Read more In Code First The Insert Statement Conflicted With The Foreign Key Constraint

How To Stop Ef4.1 Code-first To Create Culstered Index For The Entity Pk

With the following simple entity class, EF4.1 Code-First will create Clustered Index for the PK Use… Read more How To Stop Ef4.1 Code-first To Create Culstered Index For The Entity Pk

Sqlite With Ef Code First

After my success using SQLite with NHibernate, I am very happy to use it for testing with Entity Fr… Read more Sqlite With Ef Code First

Getting Security Exception Sqlce 4, Code First Ctp 5 & Shared Hosting

I've been trying to setup a webpage with MVC3 Razor, SQLCE 4 and Code First, the last two downl… Read more Getting Security Exception Sqlce 4, Code First Ctp 5 & Shared Hosting

Multiplicity Constraint Violated. The Role Child_parent_target Of The Relationship Child_parent Has Multiplicity 1 Or 0..1

I did a lot of research but haven't found any answer that matches my problem. I even tried to u… Read more Multiplicity Constraint Violated. The Role Child_parent_target Of The Relationship Child_parent Has Multiplicity 1 Or 0..1

How To Stop EF4.1 Code-First To Create Culstered Index For The Entity PK

With the following simple entity class, EF4.1 Code-First will create Clustered Index for the PK Use… Read more How To Stop EF4.1 Code-First To Create Culstered Index For The Entity PK