Cover image for NHibernate 2 Beginner's Guide : Beginner's Guide.
NHibernate 2 Beginner's Guide : Beginner's Guide.
Title:
NHibernate 2 Beginner's Guide : Beginner's Guide.
Author:
Cure, Aaron.
ISBN:
9781847198914
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (336 pages)
Contents:
NHibernate 2 -- Table of Contents -- NHibernate 2 -- Credits -- About the Author -- About the Reviewers -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Time for action - heading -- What just happened? -- Pop quiz - heading -- Have a go hero - heading -- Reader feedback -- Customer support -- Errata -- Piracy -- Questions -- 1. First Look -- What is NHibernate? -- Why would I use it? -- Where do I get it? -- Can I get help using NHibernate? -- Have a go hero - looking at some sample files -- Database table -- The XML mapping file (hbm.xml) -- Plain Old CLR Object ( POCO ) -- Data access -- Look how easy it is to use! -- Summary -- 2. Database Layout and Design -- Before you get started -- Laying the foundation-table layouts -- Time for action - creating an ordering system database -- What just happened? -- Table layouts -- NHibernate assigned IDs -- Relationships -- Pop quiz - relationships -- Normal Form -- Have a go hero - looking back -- Putting it all together -- Time for action - adding some tables to our Ordering system database -- What just happened? -- Have a go hero - create some more tables -- Summary -- 3. A Touch of Class -- Start up our applications -- Creating objects -- Time for action - creating our first class -- What just happened? -- Have a go hero - ramping up -- Public properties and private variables -- Time for action - adding a few properties -- What just happened? -- Converting SQL database types to .NET types -- Properties for Foreign Keys -- Have a go hero - adding more properties (and classes!) -- Pop quiz - mapping -- Summary -- 4. Data Cartography -- What is mapping? -- Types of mapping -- XML mapping -- Getting started -- Classes -- Properties -- ID columns -- Mapping our types -- Time for action - mapping basic types -- What just happened?.

Pop quiz - class mapping -- Relationships -- One-to-many relationships -- Many-to-many relationships -- Getting started -- Time for action - mapping relationships -- What just happened? -- Have a go hero - flushing out the rest of our map -- Fluent mapping -- Pop quiz - fluent mapping -- Summary -- 5. The Session Procession -- What is an NHibernate session? -- Time for action - getting ready -- What just happened? -- What is a session factory? -- Creating your first session -- Why do we call .Commit()? -- NHibernate session versus database session? -- Time for action - creating a session and doing some CRUD -- Pop quiz - creating and updating records -- Have a go hero - creating a full order -- Sessions in ASP.NET -- Summary -- 6. I'm a Logger -- Why do we need to log? -- Why log4net? -- Getting started -- Have a go hero - adding some logging -- Configuration -- Time for action - adding some logging -- What just happened? -- NHibernate log messages -- Appenders -- Pop quiz - creating and updating records -- Creating a logger -- Time for action - adding some custom logging -- What just happened? -- Have a go hero - adding some logging -- Summary -- 7. Configuration -- Looking back -- The basics of configuration -- Pop quiz - basic configuration -- Taking a look at the SQL -- Have a go hero - using the connection string name -- Abstracting the configuration -- Time for action - moving our configuration -- What just happened? -- XML configuration -- Have a go hero - using an XML configuration file -- Summary -- 8. Writing Queries -- Using Data Access Objects -- The basic Data Access Object -- Time for action - creating our basic Data Access Object -- What just happened? -- Data Access Object methods -- Time for action - adding some CRUD methods -- What just happened? -- Coding some GetX() methods -- The FieldNames structure.

Time for action - expanding our capabilities -- What just happened? -- The ICriteria object -- Pop quiz - FieldNames and ICriteria -- Creating a GetAll() method -- Paging and Sorting GetAll() methods -- Have a go hero - creating some paging and sorting methods -- Filtering ICriteria -- Time for action - replacing our inline code -- What just happened? -- Summary -- 9. Binding Data -- Why should we use data binding? -- Time for action - adding an ASP.NET project -- What just happened? -- Basic data binding techniques -- Common data binding methods -- A simple templated control -- Pop quiz - basic data binding -- Creating a control instance -- The control -- The control -- Time for action - adding our first data bound control -- What just happened? -- Direct data binding -- Have a go hero - give direct data binding a try -- One last control-the -- Have a go hero - creating an -- Summary -- 10. .NET Security -- Built-in controls -- Time for action - adding a login to our page -- What just happened? -- Membership providers -- Location security -- Pop quiz - doing the thing -- Configuring our provider -- Time for action - create a membership provider -- What just happened? -- User roles -- Role providers -- Provider configuration -- Have a go hero - using some roles -- Summary -- 11. It's a Generation Thing -- Judging requirements -- CodeSmith -- nhib-gen -- AjGenesis -- Visual NHibernate -- MyGeneration -- Time for action - using MyGeneration -- What just happened? -- NGen NHibernate Code Generator -- NHModeller -- Microsoft T4 templates -- T4 hbm2net -- Summary -- 12. Odds and Ends -- Unit of Work and Burrow -- Pop quiz - doing the thing -- How does this relate to NHibernate? -- Blog.Net blogging components -- maxRequestLength -- Converting CSS templates.

Time for action - converting a CSS template -- What just happened? -- Have a go hero - .NETing the master page -- XML documentation & GhostDoc -- Summary -- A. Pop Quiz Answers -- Chapter 2 - Database Layout and Design -- Relationships -- Chapter 3 - A Touch of Class -- Mapping -- Chapter 4 - Data Cartography -- Class mapping -- Chapter 5 - The Session Procession -- Creating and updating records -- Chapter 6 - I'm Logger -- Logging -- Chapter 7 - Configuration -- Basic configuration -- Chapter 8 - Writing Queries -- Fieldnames and ICriteria -- Chapter 9 - Binding Data -- Basic data binding -- Chapter 10 - .NET Security -- Access configuration -- Chapter 12 - Odds and Ends -- Burrowing in -- Index.
Abstract:
Rapidly retrieve data from your database into .NET objects.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: