110 likes | 280 Views
ESRI Dev Meet Up Migrating to the ESRI Silverlight API. United States Department of Agriculture Animal and Plant Health Inspection Service Plant Protection and Quarantine. Plant Protection and Quarantine
E N D
ESRI Dev Meet Up Migrating to the ESRI Silverlight API United States Department of Agriculture Animal and Plant Health Inspection Service Plant Protection and Quarantine
Plant Protection and Quarantine • Mission: Safeguard U.S. agricultural and natural resources from risks associated with the entry, establishment, or spread of plant pests and diseases, as well as invasive and harmful weeds. • Responsibilities: • Pest surveillance, detection, and identification • Pest eradication and management • Regulation and certification of plants and plant products for import and export • Crop biosecurity and emergency response
Current PPQ Web Mapping • Supports a variety of programs across 22 state Region • Used by GIS professionals & non GIS personnel • Map Viewer • Configuration Web App • Moving to • ESRI Silverlight API for mapping • Keep existing configuration database and app
Configuration Web App • Allows users to select services, tools, and reports for a map app • Can also manage app security • SQL Server back end
Map Viewer • Developed with .Net Web ADF 9.3.1 • Enforces application access security • Map Layers, Tools added at run time • Application ID passed in URL • Single mapping site to maintain
Map Viewer – Configuration DB • Easy to move data with DB stored procs & ADO objects • Web.config settings for db, user, pwd
Silverlight • “Silverlight is a cross-browser, cross-platform implementation of the .NET Framework for building and delivering the next generation of media experiences and rich interactive applications (RIA) for the Web.” http://msdn.microsoft.com/en-us/library/bb404700(VS.95).aspx • Migration Strategy • Copy • Paste • Done
Silverlight • Not the full .Net Framework • No System.Data = No Config DB! • Now What?? The type or namespace Data does not exist
Web Services to the Rescue • ADO .Net Entity Data Model of the Config DB • Supports CRUD operations • Existing database objects (tables, views, stored procs) • RIA Domain Services enable Client access
Web Services to the Rescue ?? • EDM generated code – connection string • PPQ standard = No clear password storage! • Override Service CreateObjectContext Not Cool
Web Services to the Rescue • Can also bind control source to domain services