partial class can’t be created in ria service library


when create .net ria service class library, vs create 2 projects: myriaservices(client side)  , myriaservices.web(server side)

suppose entity model in project: mydata(entity framework)

there entity people.

then want use partial class extend entity in following way:

namespace mydata
{
   
public partial class person
   
{
   
//....
   
}
}

if in project mydata, fine.

but want way in project myriaservices.web can named file as person.shared.cs, failed. gave me error saying class definition conflict etc.

how resolve problem?

you can't partial across project boundary.



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

SQL server replication error Cannot find the dbo or user defined function........

BIT Version

Admin Permissions