Copyright © 2004 J. Ambrose Little Introduction to Object-Relational Mapping for.NET
Copyright © 2004 J. Ambrose Little Little ‘bout Me dotNetTemplar.Net ASP.NET MVP ASPInsiders ASPAlliance.com GTE Federal Credit Union Life Beyond the Bits
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.
Copyright © 2004 J. Ambrose Little Problems Querying Updating Mapping Performance
Copyright © 2004 J. Ambrose Little Solutions Querying: OPath, Query Builder, Sprocs, Etc. Updating: SQL, Commands, Transactions, Etc. Mapping: XML/text files, Attributes. Performance: Caching
Copyright © 2004 J. Ambrose Little Mapping XML Configuration (Wilson O/R Mapper) XML Configuration (NHibernate)
Copyright © 2004 J. Ambrose Little Mapping Custom Attributes (DataAspects)
Copyright © 2004 J. Ambrose Little Querying OPath (an OO SQL/XPath) Query Building (NHibernate)
Copyright © 2004 J. Ambrose Little Querying Query Building (eXpress Persistent Objects) (DefaultAddress.City <> "Chicago" AND not (Company is null))
Copyright © 2004 J. Ambrose Little Querying Stored Procedures and Dynamic T-SQL Custom Attributes (DataAspects)
Copyright © 2004 J. Ambrose Little Updating Commands and SQL Generation Use Mappings to Generate Commands and Parameters and, optionally, T-SQL.
Copyright © 2004 J. Ambrose Little Updating Transactions
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 milliseconds straight ADO.NET CRUD operations took milliseconds. How is this possible?
Copyright © 2004 J. Ambrose Little Extensibility Does your O-R mapper allow you to use more than one database?
Copyright © 2004 J. Ambrose Little Some Examples
Copyright © 2004 J. Ambrose Little Future Features Built-In Paging Procedure Generation Easier API for Collections More Options for Querying VB Examples
Copyright © 2004 J. Ambrose Little Other Resources DotNetTemplar – Get Demo Project & Library - Object Spaces – – WilsonORMapper – eXpress Persistent Objects – Other O-R Libraries (Some Free, Some Not) –