Boost data-driven application development using SQL Server Centric.NET Code Generator David Rodriguez SQL Server Technology Specialist Microsoft Corporation
Agenda Overview Installation Using built-in templates Building custom templates Olymars in real world
Resources Freely downloaded but NOT SUPPORTED That being said it is very easy to use That being said it is very easy to use
Agenda Overview Installation Using built-in templates Building custom templates Olymars in real world
Database Insert Update Delete Select Custom1 Table1 Stored Procedures DataClasses Web controls Windows controls ComboBox ListBox CheckedListBox DataGrid ListBox DropDownList CheckBoxList DataGrid Repeater DataList Windows Forms Application Form N Tiered Application
Overview Internally known as OlyMars Project started in March 2001 Can help you (and your organization) move quickly to the.NET world Already 200+ external customers using it
Overview OlyMars is built on.NET (C#) Two ways of considering this tool Comes with more 150+ built-in templates Comes with more 150+ built-in templates Is a code generation framework Is a code generation framework Relies on a SQL Server 2000 database Is built using itself
Agenda Overview Installation Using built-in templates Building custom templates Olymars in real world
OlyMars Setup
Agenda Overview Installation Using built-in templates Building custom templates Olymars in real world
Database What do we need next? Stored procedures… Table1 Table2 Table3 Table4 Designed by hand
Stored Procedures Database Insert Update Delete Select Auto-generated Custom1 Custom2 Custom3 Written by hand Table1
Stored Procedures Generation
Database What do we need next? ADO.NET classes able to call the stored procedures Insert Update Delete Select Auto-generated Custom1 Custom2 Custom3 Written by hand Table1
DatabaseStructure What do we need next? Windows & Web controls that map to each of our tables Auto-generated Written by hand DataClasses
Web controls Windows controls Database Table1 ComboBox ListBox CheckedListBox DataGrid ListBox DropDownList CheckBoxList DataGrid Repeater DataList Auto-generated Written by hand
Web controls Windows controls Database ComboBox ListBox CheckedListBox DataGrid ListBox DropDownList CheckBoxList DataGrid Repeater DataList Auto-generated Written by hand SP
Web Forms Windows Forms Database Table1 Form Page Auto-generated Written by hand SampleApplication
Rest of the generation
Agenda Overview Installation Using built-in templates Building custom templates Olymars in real world
IE asp page IIS htmlcontent TOOL Template Code You SQL File
Tool Repository Needs to connect to a repository
Tool Repository Working DB Needs to connect to a working database and analyses it
Tool Repository In memory Working DB representation When analyzed, creates an in-memory representation of this working database
Tool Templates Repository In memory Working DB representation Loads the templates in memory
Tool Templates Repository In memory Working DB representation This representation is provided to the templates
Tool Templates Repository In memory Working DB representation The templates are executed by the tool
Tool Templates Repository In memory Working DB representation SQLcode Can be some SQL code to execute on the working DB
Tool Templates Repository In memory Working DB representation Disk File SQLcode Can be any code to save in files
Building custom templates
Agenda Overview Installation Using built-in templates Building custom templates Olymars in real world
Questions?
© 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.