Only EF 4.1 code?

As far as I can tell (correct me if I am wrong), there are two main approaches to using Entity Framework:

  • Model First: start with a predefined database and let EF create the code for you.
  • Code First: write the code, and EF will create a database for you.

I have an existing database, and I would like to write the code myself. Is this code-only approach supported? Does this approach even make sense in the context of EF?

+5
source share
5 answers

. , , EF "Code First" - , , , EDMX. " ", , , Entity Framework LINQ to Entities.

. EF "Code First" .

+5
+2

, , - ( ) ( ). , Code First, , .

, , .

EF4 , . ORM, .

+1

, , - , , ( ), ( ), .

+1

All Articles