On Mix 09, Nikhil Kothari released a Microsoft God for--microsoft. NET RIA Services. Although the current version is only poor "March ' Preview", it is enough to excite people. In short, before that, if you use a current RIA technology such as Silverlight, you can only choose to write a large number of services or WCF to achieve the operational functions of the data, and with. NET RIA Services, you manipulate data on RIA projects, as easily as asp.net!
Nikhil Kothari describes the video of. NET RIA Services on MIX09:
Http://www.nikhilk.net/RIA-Services-MIX09.aspx
Microsoft. NET RIA Services March ' Preview and document download address:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID= 76bb3a07-3846-4564-b0c3-27972bcaabce
. NET RIA Services Samples in the MSDN Code Gallery
Http://code.msdn.microsoft.com/RiaServices
OK, here's the summary, let's talk more about it.
How traditional RIA operates data
At this time last year, Silverlight 2Beta just released, and a friend asked me if I could use Silverlight to manipulate the database directly. The answer was, of course: unfortunately, no. We have to use a lot of Web services or WCF to provide every link to the database operation, Silverlight can only "indirect contact" with the data tier.
The diagram above shows the whole process. This kind of data operation has been used by everyone, but it is unreasonable. Just like in the "three links" before we go to Taiwan, we have to go to Hong Kong to make a turnaround.
Blog Park Daniel Shareach a few days ago wrote a Silverlight chat program, data operations using WCF Duplex service to achieve two-way communication, very cow, we can go to see. (Onlookers connection: http://www.cnblogs.com/yinpengxiang/archive/2009/03/23/ slchat.html) This is a successful case of the Silverlight operation data layer, but it can also be sad: such a seemingly simple chat program, why has the participation of WCF become complex?
This is because, such "indirect contact", not only is not intuitive, but also a waste of developers a large number of managers to consider some of the issues should not be considered. Developers need to write a different version of the data manipulation code on the client, Web service side, BLL, and also consider the security of their interactions, the network situation, and so on, is simply a waste of a large number of ATP production of small amounts of GDP in the process.
What should be a reasonable data operation