Sybase Connection - base class is less accessible than class 'X'
Our application uses Entity Framework to work with a Sybase 12 database.
I'm trying to do to LINQ testing with LINQPad4 and this database.
When I run a query I get:
'Viewport.Database.Entities.ViewportDBModelContainer' is inaccessible due to its protection level
Inconsistent accessibility: base class 'Viewport.Database.Entities.ViewportDBModelContainer' is less accessible than class 'UserQuery'
When I go into the Properties for the connection and click "Test" I get "Connection Successful".
I have put:
User ID=ABC;Password=DEF
into the "Connection String" item but it seems I have some issue with access to the database.
Any hints?
I'm trying to do to LINQ testing with LINQPad4 and this database.
When I run a query I get:
'Viewport.Database.Entities.ViewportDBModelContainer' is inaccessible due to its protection level
Inconsistent accessibility: base class 'Viewport.Database.Entities.ViewportDBModelContainer' is less accessible than class 'UserQuery'
When I go into the Properties for the connection and click "Test" I get "Connection Successful".
I have put:
User ID=ABC;Password=DEF
into the "Connection String" item but it seems I have some issue with access to the database.
Any hints?
Comments
http://forum.linqpad.net/discussion/7/objectcontext-is-inaccessible-due-to-its-protection-level
The DatabaseContext class was internal rather than public...