In Entity framework, we can use Model first, DB first, Code first but how can we create table programmatically

Posted by AukI on Stack Overflow See other posts from Stack Overflow or by AukI
Published on 2012-06-09T21:39:14Z Indexed on 2012/06/10 10:40 UTC
Read the original article Hit count: 208

In entity framework we can use 3 approaches model first , code first , database first but each one of them needs manual hand touch(means creating database or create model or write the POCO class codes or entity class codes) before proceeding to the next step ( using EF in context ).

What if I want to create database and tables and table relationships programatically and still want to have to features of EntityFramework 4.3.

To be more specific , from this example http://support.microsoft.com/kb/307283 we can create database , tables and everything using SQL command but we can't have the advantages of entity framework. So if we want to have that what should we do?

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about entity-framework