Download presentation
Presentation is loading. Please wait.
Published byBryan Cornelius Warner Modified over 9 years ago
1
Copyright © 2004 J. Ambrose Little Introduction to Object-Relational Mapping for.NET
2
Copyright © 2004 J. Ambrose Little Little ‘bout Me dotNetTemplar.Net ASP.NET MVP ASPInsiders ASPAlliance.com GTE Federal Credit Union Life Beyond the Bits
3
Copyright © 2004 J. Ambrose Little What is Object-Relational Mapping? The need for RDBMS. The need for OOD/OOP. The need for OOD/OOP to talk to RDBMS. The need for RAD and long-term manageability.
4
Copyright © 2004 J. Ambrose Little Problems Querying Updating Mapping Performance
5
Copyright © 2004 J. Ambrose Little Solutions Querying: OPath, Query Builder, Sprocs, Etc. Updating: SQL, Commands, Transactions, Etc. Mapping: XML/text files, Attributes. Performance: Caching
6
Copyright © 2004 J. Ambrose Little Mapping XML Configuration (Wilson O/R Mapper) XML Configuration (NHibernate)
7
Copyright © 2004 J. Ambrose Little Mapping Custom Attributes (DataAspects)
8
Copyright © 2004 J. Ambrose Little Querying OPath (an OO SQL/XPath) Query Building (NHibernate)
9
Copyright © 2004 J. Ambrose Little Querying Query Building (eXpress Persistent Objects) (DefaultAddress.City <> "Chicago" AND not (Company is null))
10
Copyright © 2004 J. Ambrose Little Querying Stored Procedures and Dynamic T-SQL Custom Attributes (DataAspects)
11
Copyright © 2004 J. Ambrose Little Updating Commands and SQL Generation Use Mappings to Generate Commands and Parameters and, optionally, T-SQL.
12
Copyright © 2004 J. Ambrose Little Updating Transactions
13
Copyright © 2004 J. Ambrose Little Performance Is this as fast as straight, hand-written (or generated) ADO.NET? –Compared to 2-tier? –Compared to n-tier? 1000 DataAspects CRUD operations took 5046.8427 milliseconds. 1000 straight ADO.NET CRUD operations took 5281.2162 milliseconds. How is this possible?
14
Copyright © 2004 J. Ambrose Little Extensibility Does your O-R mapper allow you to use more than one database?
15
Copyright © 2004 J. Ambrose Little Some Examples
16
Copyright © 2004 J. Ambrose Little Future Features Built-In Paging Procedure Generation Easier API for Collections More Options for Querying VB Examples
17
Copyright © 2004 J. Ambrose Little Other Resources DotNetTemplar – http://dotNetTemplar.net Get Demo Project & Library - http://dotNetTemplar.Net/Downloads/LearnDataAspects.zip Object Spaces –http://msdn.microsoft.com/data/winfs/ –http://blogs.msdn.com/aconrad/ WilsonORMapper –http://www.wilsondotnet.com/ eXpress Persistent Objects –http://www.devexpress.com/products/NET/XPO/ Other O-R Libraries (Some Free, Some Not) –http://url123.com/z7mqb
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.