Click here to Skip to main content
15,905,004 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use tree view in my age , to show category , sub category and sub - sub category .
Now I did manually entry for category table (postgre database, schema= category , table name = allcategory).
so i wnat to display these information in tree view using entity frame work.
so can u give any way , how we can connect PostgreSql ?
(i know how to connect SqlServer with entity frame work).
But when i try to add connection for postgresql , it did not show any provider for postgresql...
Thank you.
Posted

1 solution

Entity framework also works with Npgsql - .Net Data Provider for Postgresql. A tutorial on how to set it up can be found here: http://npgsql.projects.postgresql.org/
 
Share this answer
 
Comments
I know this , but i tried and not working.
I want to add connection of postgresql, and i searched for it but not getting answers.
Thank you.
Member 10434230 5-Feb-14 6:22am    
Any specific error that you are getting?
there is a working example posted at: http://npgsql.projects.pgfoundry.org/exampleprograms.html
with out entity frame work its works fine.
but when i choose , project as entity framework and want to show tree view , it is not displayed and gives error "Object reference not set to an instance of an object."

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