simple entity creation in solution with multiple projects (PostgreSQL)

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
zoog22
Posts: 3
Joined: Sun 30 Jun 2013 02:22

simple entity creation in solution with multiple projects (PostgreSQL)

Post by zoog22 » Sun 30 Jun 2013 02:32

I can create my models just fine, but in the project (different from my models project) where I'm actually trying to instantiate the context, I can't find it.

I'm sorry this is very vague, I can include any code that may be needed. Is there an extra step I'm missing?

Thanks

zoog22
Posts: 3
Joined: Sun 30 Jun 2013 02:22

Re: simple entity creation in solution with multiple projects (PostgreSQL)

Post by zoog22 » Sun 30 Jun 2013 02:43

I just created it in the same project and it seems to be working fine. Is there something extra needed for it to be used across multiple projects in a solution?

zoog22
Posts: 3
Joined: Sun 30 Jun 2013 02:22

Re: simple entity creation in solution with multiple projects (PostgreSQL)

Post by zoog22 » Sun 30 Jun 2013 02:50

I can also reference it from my other non ASP.NET projects, so this seems to be directly related to my aspx.cs classes.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: simple entity creation in solution with multiple projects (PostgreSQL)

Post by Shalex » Wed 03 Jul 2013 13:49

Try using global namespace alias:

Code: Select all

var obj = new global::MyNamespace.MyClass();
If this doesn't help, please send us a small test solution so that we can reproduce the problem in our environment.

Post Reply