I've read that you can put business rules on the server when dealing with WCF RIA services, but I'm at a loss for how to accomplish what I what. Basically what I have is, there's a string stored in the database that's encrypted. I have a view that returns that column, and I'd like it to be returned to the client unencrypted. I have a standard DomainService Get method
public IQueryable<qry_ClientList> GetQry_ClientList(Guid Key)
{
return this.ObjectContext.qry_ClientList.OrderBy(p => p.ClientCode);
}
Can someone point me in the right direction how I'd call the decrypt function on that field before it's returned? I have a reason I want to do this in code and not on the server, but I don't go into that here.
You can do postprocessing by overriding DomainService.Query() method as follows: