Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I've downloaded the POCO entity generator from poco generator and also followed the steps from walkthrough but the poco generator option is not in my template list.




I'm using visual studio 2010 professional and I've downloaded and installed the poco entity generator extension.Open the designer of my entity model,Clicked on "Add code generation item..." but the poco template is not in the list ???
Posted
Comments
xyznelson 17-Apr-15 17:45pm    
Nice little POCOGenerator APP you wrote. I did find a bug however in one of
your SQL statements that is easily fixable. In your GetPrimaryKeys(DATABASE database)
method, add this line of code just before the "ORDER by" clause:

where kc.type = 'PK'

without it, unwanted rows slip through (like columns with a Unique Key constraint on them) causing an annoying bug.

POCO : Plain Old CLR Object or POCO is a play on the term POJO, from the Java EE programming world, and is used by developers targeting the Common Language Runtime of the .NET Framework.
POCO is often incorrectly expanded to Plain Old C# Object, but POCOs can be created with any language targeting the CLR. An alternative acronym sometimes used is PONO[2], for Plain Old .NET Object, leading also to the possiblity of POPO; or Plain Old PHP Object.
 
Share this answer
 
Comments
xyznelson 17-Apr-15 17:44pm    
Nice little POCOGenerator app you wrote. I did find a bug however in one of
your SQL statements that is easily fixable. In your GetPrimaryKeys(Database database)
method, add this line of code just before the "order by" clause:

where kc.type = 'PK'

without it, unwanted rows slip through (like columns with a Unique Key constraint on them) causing an annoying bug.
you can try following :

From edmx file -> right click -> Add Code Generation Item

-> Search for POCO - if found select it and follow further steps...

if not found then make search in online template section - > after you get it select and follow further steps.

-Sagar Solanki
 
Share this answer
 
Comments
xyznelson 17-Apr-15 17:42pm    
Nice little POCOGenerator app you wrote. I did find a bug however in one of
your SQL statements that is easily fixable. In your GetPrimaryKeys(Database database)
method, add this line of code just before the "order by" clause:

where kc.type = 'PK'

without it, unwanted columns slip through (like columns with a Unique Key constraint on them) causing an annoying bug.

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