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
Post a Comment