Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
I want to access my entity data model in T4 templates.
I want to generate some code from database in t4 template.
ex: using(var context=new Mymodel())
{
//db operations
}

Please help me
thank you....
Posted
Updated 22-Jun-15 1:14am
v3
Comments
virusstorm 22-Jun-15 8:15am    
Is this a code first or model first approach?
NagaRaju Pesarlanka 22-Jun-15 10:47am    
DBFirst

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900