- To have best performance of the RIA
application, app logic need to be available in client and server side.
This problem is solved by auto generating the code at the client side
while recompiling the project.
- Asynchronous call – Asynch service call are
supported in Domain service by using WCF infrastructure
- Handling large data and data across different
tier – Large amount of data can be access and filter using IQueryable
object. Since entity objects used in domain service are serializable and
so it can be access across different layer
- Security/Access control – ASP.Net membership
frameworks are integrated with RIA service to provide security systems to
RIA service
- Validation – Entity can be validated based using adding attribute to the class members
Example:
Public class Member
Public class Member
{
[Key]
Public int MemberId {get; set ;}
Public string Fname {gets; set ;}
[Required]
Public string Lname {gets; set ;}
Public DateTime JoinDate {get; set ;}
[Range
(30, 90, ErrorMessage="sorry, you are either too young or too old for our
club!")]
Public int Age {get; set ;}
}
No comments:
Post a Comment