RIA Services && Default Constructors


i use domain service encapsulate business logic classes rather linq sql or ef model. know possible i.e. service needs implement domainservice, problem none of business logic classes have public constructors, instead instantiated using factory pattern,

e.g. customer customer = customerfactory.factory.createnew() 

this means cannot write the following service,

public salesservice : domainservice

{

public void ienumerable<customer> getcustomer()

{

...

}

}

does have ideas how can resolved? thoughts write proxy / wrapper classes every class want surface.

thanks

there's factory class domainservices in framework. don't remember off top of head. think take @ repository sample example (http://code.msdn.microsoft.com/riaservices).

kyle



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

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