silverlight 5.0 - DBDomainService & DbContext RIA Class Library -


i using ef5, silverlight, ria service in project.

i have ria class library project (with 2 projects), have setup correctly other sl projects class library.

i created .edmx in ria .web project database , got following class generated:

public partial class scentities : dbcontext {      public scentities()          : base("name=scentities")     {     }      protected override void onmodelcreating(dbmodelbuilder modelbuilder)     {         throw new unintentionalcodefirstexception();     }      public dbset<period> periods { get; set; }     public dbset<user> users { get; set; } } 

in client sl application, can't reference dbcontext class (scentities).

i created domainservice class in ria class .web project inherit dbdomainservice follows:

public partial class scdomainservice : dbdomainservice<scentities> { } 

i go sl application & can reference scdomainservice no problem.

why can not reference or access scentities (dbcontext) ?

is right go domainservice?

best


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -