RIA Services and Shared domainlogic??

Posted by NPehrsson on Stack Overflow See other posts from Stack Overflow or by NPehrsson
Published on 2010-03-15T08:51:41Z Indexed on 2010/03/15 8:59 UTC
Read the original article Hit count: 375

I'm kind of disappointed at Ria Services.

I like to work in a domain driven design way, so for example if I'm working with an invoicing system I have an object invoice which will have all methods on it to for example calculate total price from its invoice rows.

public decimal Amount
{
    get {return Entries.Sum(x => x.Amount);}
}

I like to have methods to add a new row to validate in data.

public void AddInvoiceRow(Article article, decimal quantity)

This is functionality I need on both client and server side.

Have I missed something big or is RIA Services not for me? (In the whole, I don't like Silverlight restrictions at all, I mean that we need get; set on every data field we want to transfer for example some fields are not public at all in domain driven design but the technique Silverlight offers forcing us to do bad coding.)

© Stack Overflow or respective owner

Related posts about silverlight-4.0

Related posts about Silverlight