Data-driven development for Silverlight WCF ria1.0 three steps
The official release of WCF Ria 1.0 makes the Silverlight development business application system simpler and clearer in structure,CodeThe workload is greatly reduced. Combined with Visual Studio 2010, the. NET Silverlight application is more efficient.
Ria Service Architecture
Development Environment
Windows 2008/Windows 7
IIS 7 (difficult to deploy ii6)
Visual Studio 2010
Riaservicestoolkit. MSI
Silverlight4_tools.exe
Riaservices. MSI
You can download the toolkit from the official Microsoft website www.silverlight.net.
Create a data model
Database Modeling, table structure, primary-foreign key relationships, field constraints, code/parameter table
Data Service)
Data access layer uses ado.net entitiyframework
Domain Service)
The entity and crud method created by the Entity Framework in the data access layer are exposed to the domain server class and metadata class)
After compilation, the client generates the corresponding domain context class
XAML page display
Bind domaincontext through domaindatasource
Bind records to the DataGrid, bind details to the dataform, and perform field verification by setting the metadata class.
Data submission
Demo
Http: // 192.168.103.78/CRM/crmtestpage. aspx