Presentation is loading. Please wait.

Presentation is loading. Please wait.

DAT305 Boost Your Data-Driven Application Development Using SQL Server Centric.NET Code Generator Pascal Belaud Microsoft France.

Similar presentations


Presentation on theme: "DAT305 Boost Your Data-Driven Application Development Using SQL Server Centric.NET Code Generator Pascal Belaud Microsoft France."— Presentation transcript:

1 DAT305 Boost Your Data-Driven Application Development Using SQL Server Centric.NET Code Generator Pascal Belaud Microsoft France

2 Questions & evaluation Form Please keep all your questions for the end of this session or after this session Thanks to fill out the evaluation form (you have only one hour after the session to do so) and WIN A POCKET PC It helps us improve our session content and delivery

3 Agenda Overview Setup Reuse built-in templates Write custom templates

4 Resources Web Site http://www.microsoft.com/france/msdn/olymars Send feedback to olyfeed@microsoft.com Free but NOT SUPPORTED

5 Agenda Overview Setup Reuse built-in templates Write custom templates

6 Overview OlyMars stands for Olympique de Marseille SQL Server Centric.NET Code Generator is the marketing name Project started in Mars 2001 Help you switch more quickly and more easily to SQL Server 2000 and.NET

7 Overview OlyMars was developed on.NET (C#) Two ways of considering this tool Comes with 200+ built-in templates Supplies a framework for intensive code generation Relies on a SQL Server 2000 database Was built using itself! 56% of the tool code was generated (168,288 total lines – 94,313 generated lines)

8 Agenda Overview Setup Reuse built-in templates Write custom templates

9 OlyMars Setup demo demo

10 Agenda Overview Setup Reuse built-in templates Write custom templates

11 Database What do we need next? Stored procedures… Table1 Table2 Table3 Table4 Written by hand

12 Stored procedures Database Insert Update Delete Select Generated Custom1 Custom2 Custom3 Written by hand Table1

13 Stored Procedures Generation demo demo

14 Stored procedures Database What do we need next? need next? ADO.NET classes able to call our stored procedures Insert Update Delete Select Generated Custom1 Custom2 Custom3 Written by hand Table1

15 ADO.NET Code Generation demo demo

16 DataClasses Database What do we need next? Windows and Web controls dedicated to our tables Generated Written by hand

17 Web controls Windows controls Database Table1 ComboBox ListBox CheckedListBox DataGrid ListBox DropDownList CheckBoxList DataGrid Repeater DataList Generated Written by hand

18 Web controls Windows controls Database ComboBox ListBox CheckedListBox DataGrid ListBox DropDownList CheckBoxList DataGrid Repeater DataList Generated Written by hand SP If it returns data

19 Web Forms Windows Forms Database Table1 Form Page Generated Written by hand SampleApplication

20 Whole Generation Using Batch Mode demo demo

21 Templates Supplied As Add-On Business Components TreeView Factory XML Web Services Object Space style.NET Compact Framework

22 How to import and use an add-on demo demo

23 Templates Supplied As Add-On Business Components TreeView Factory XML Web Services Object Space style.NET Compact Framework

24 Business Components

25 Browsing a collection of products: Updating an existing product

26 Business Components Adding a new product: Deleting an existing product

27 Templates Supplied As Add-On Business Components TreeView Factory XML Web Services Object Space style.NET Compact Framework

28 TreeView Factory

29 Templates Supplied As Add-On Business Components TreeView Factory XML Web Services Object Space style.NET Compact Framework

30 SQLCE SQL Server OlyMars System.Data.SqlClient System.Data.SqlServerCe

31 Add-On:.NET Compact Framework demo demo

32 .NET Compact Framework SQLCE SQL Server OlyMars SPs SQL statements Single point of management Tables

33 Agenda Overview Setup Reuse built-in templates Write custom templates

34 Write Custom Templates Allow you to extend the tool You can reuse part or none of the built-in templates and write your own Can reflect more accurately your internal development guidelines

35 IE ASP page IIS HTMLcontent

36 IE IIS HTMLcontent OlyMars Template Code You SQL File

37 OlyMars Repository Connection to the repository

38 OlyMars Repository Working DB Connection and analysis of your working database

39 OlyMars Repository In memory representation of working DB Working DB Once analyzed, a in-memory representation of the database is created

40 OlyMars Templates Repository In memory representation of working DB Working DB Templates are loaded in memory

41 OlyMars Templates Repository In memory representation of working DB Working DB This representation is supplied to the templates

42 OlyMars Templates Repository In memory representation of working DB Working DB Templates are then executed

43 OlyMars Templates Repository In memory representation of working DB Working DB SQLcode SQL code is directly executed on the working database

44 OlyMars Templates Repository In memory representation of working DB Disk File Working DB SQLcode Code is saved to a file

45 Writing Custom Templates demo demo

46 Extensions For OlyMars Write OlyMars extensions from Visual Studio.NET Run this batch file first: \ForExtensionsDevTimeOnly\Copy OlyMars DLL.bat Make a reference to SQLCodeGenDotNet.dll from your VS.NET projects

47 Extensions For OlyMars From your code, use the following namespaces Olymars.SqlDbScan Application Olymars.Executor Response Source

48 Writing Extensions For OlyMars demo demo

49 Add-Ins For OlyMars You can write your own add ins for OlyMars Make a reference to SQLCodeGenDotNet.dll from your project Create Class Library projects and add at least a public class implementing: Olymars.IOlymarsAddIn

50 Add-Ins For OlyMars

51 Writing Add-ins For OlyMars demo demo

52 Next Steps Give this tool a try Look at the code that is generated by default Write your own templates Extend the tool with your own extensions and add-ins

53 Resources Web Site http://www.microsoft.com/france/msdn/olymars Send feedback to olyfeed@microsoft.com Free but NOT SUPPORTED

54 Questions?

55 Community Resources http://www.microsoft.com/communities/default.mspx Most Valuable Professional (MVP) http://www.mvp.support.microsoft.com/ Newsgroups Converse online with Microsoft Newsgroups, including Worldwide http://www.microsoft.com/communities/newsgroups/default.mspx User Groups Meet and learn with your peers http://www.microsoft.com/communities/usergroups/default.mspx

56 evaluations evaluations

57 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "DAT305 Boost Your Data-Driven Application Development Using SQL Server Centric.NET Code Generator Pascal Belaud Microsoft France."

Similar presentations


Ads by Google