nHibernate Explained by example

nHibernate Explained by example - NHibernate explained...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
- 1 - NHibernate explained Table of contents Disclaimer . ....................................................................................................................................... - 2 - Additional resources. ........................................................................................................................ - 3 - NHibernate by example. ................................................................................................................... - 4 - The scenario . ................................................................................................................................ - 5 - Mapping the schema. .................................................................................................................... - 6 - Configuring the session factory. ................................................................................................. - 10 - Performing basic crud operations. .............................................................................................. - 11 - Querying data using ICriteria. .................................................................................................... - 13 - ICriteria API short examples. ................................................................................................. - 13 - Using query by example (QBE). ............................................................................................ - 15 - Querying for exactly the needed data. .................................................................................... - 17 - Querying using IQuery. .............................................................................................................. - 17 - Performing queries. ................................................................................................................ - 17 - IQuery API short examples. ................................................................................................... - 18 - Performance consideration. ........................................................................................................ - 20 - Mapping entities. .................................................................................................................... - 20 - Loading data using ISession.Get or ICriteria. ........................................................................ - 21 - Loading data using IQuery. .................................................................................................... - 21 -
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
- 2 - License Copyright © Dragos Nuta, 2005 This product is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. You should have received a copy of the GNU Lesser General Public License along with this product; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Disclaimer DOCUMENTATION IS PROVIDED UNDER THIS LICENSE ON AN “AS IS” BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE DOCUMENTATION IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENTATION IS WITH YOU. SHOULD ANY DOCUMENTATION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL WRITER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENTATION IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL WRITER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF DOCUMENTATION, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES ARISING OUT OF OR RELATING TO THE USE OF THE DOCUMENTATION, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.
Background image of page 2
- 3 - Additional resources Resources for NHibernate 1.x and Hibernate 2.1: ± “Hibernate in Action” written by Christian Bauer and Gavin King (members of the Hibernate team) ± http://wiki.nhibernate.org/ ± www.nhibernate.org ± forum.hibernate.org ± http://wiki.nhibernate.org/display/NH/Documentation ± http://www.hibernate.org/hib_docs/reference/en/html/
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 22

nHibernate Explained by example - NHibernate explained...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online