What is the difference between EF POCO and EF Code First?
If I am starting with just POCOs can I use EF with them?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use EF code first you have POCO objects and the database is created with code from the DbContext class. You get no visual designer when using code first.
You can also use POCOs for “ordinary” EF but then your database will be handled by an edmx file and a visual designer.
Wich approach you use is up to you as a developer, but my opinion is that the code first alternative is cleaner than the edmx solution.