-
I found many examples online covering how to serialize NHibernate entities for use over a WCF channel, while still using lazy and eager loading. In my application, my database models and my SOA models needed to be exactly the same; therefore, I wanted to avoid the use of DTOs. However, none of the examples...
Posted to
How to
by
awgneo
on 01-28-2012
Filed under: FluentNH, lazy loading, Nhibernate
-
I originally blogged about this here and here on my blog but Fabio suggested I add these posts to the Forge, so here I am. I have to say I am a little exited to make my first contribution to the Wiki [H]. I will try to add a bit more to them and show some examples that do not use the TableGenerator class...
Posted to
How to
by
Steve Bohlen
on 11-20-2011
Filed under: FluentNH, IIdentifierGenerator, IPersistentIdentifierGenerator, Mapping, Nhibernate, TableGenerator
-
If you want to know if an unloaded collection in an entity contains elements, or count them, without actually loading them, you need to use a custom query; that is because the Count property (if the collection is not mapped with lazy=”extra” ) and the LINQ Count() and Any() methods force...
-
Note: This post has been cross posted from my own blog at Los Techies. I am very pleased to announce that my book NHibernate 3 Beginners Guide has finally been published. It is a wonderful feeling to finally have a book in my hands that cost me a couple of months of intense work. But I think the result...
-
As our users might know, the Devart company has recently released a new version of Entity Developer that supports NHibernate that is intended to provide users with a powerful and convenient visual model designer for NHibernate . When writing templates for generating entity classes for NHibernate models...
Posted to
How to
by
Igor Ignatov
on 08-09-2011
Filed under: Mapping, Nhibernate, Nhibernate Documentation
-
When using mapping by code it may not be 100% obvious what XML is being generated for NHibernate. You have a couple of options, the first option is to tell NHibernate to write all your mappings into the bin folder:- var mapper = new ModelMapper(); mapper.AddMappings(typeof(CmsMeta).Assembly.GetTypes...
Posted to
How to
by
rippo
on 07-26-2011
Filed under: Mapping by code, Nhibernate
-
If you are using NHibernate and suddenly find yourself needing to integrate with a Flex client, this article written by Joseph Magly will be helpful. http://www.adobe.com/devnet/flex/articles/flex-nhibernate.html
-
Visual NHibernate can be customized in many ways. Today we’ll look at the built-in template engine. You can easily create the exact output you need by tweaking the built-in templates or creating new custom templates. Visual NHibernate currently has two built-in templates: The standard NHibernate...
-
[This article was originally published on my personal blog here . I hereby grant myself permission to re-publish it on NHForge.org.] [Code for this article is available on GitHub here .] One of the new features in NHibernate 3 is the addition of a fluent API for configuring NHibernate through code. Fluent...
-
This post is the second one about the NHibernate Bootstrapper. The first is located here . The first post set up the project structure, introduced the generic DAO, and demonstrated the SessionPerRequest implementation in an IHttpModule. This post will factor the reference to NHibernate out of the web...
-
Extension to NHibernate providing fully integrated GIS programming experience. Connect NHibernate to spatially enabled databases and manipulate geometries in HQL or in .NET code. Read documentation at NH Spatial wiki site . Please submit your bug reports or feature requests to NH issue tracker and support...
Posted to
NHibernate Spatial
by
Ricardo Stuven
on 10-08-2008
Filed under: spatial, C#, NHibernate, Query, MsSqlSpatial, OpenGIS, OGC, orm, persistence, SQL Server 2008, PostGis, NTS, SQL Server, csharp, GIS
-
Update: A newer release is available. NHibernate.Spatial , spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code providing you with a fully integrated GIS programming experience. Read documentation at NH Spatial...
Posted to
NHibernate Spatial
by
Ricardo Stuven
on 09-29-2008
Filed under: spatial, C#, NHibernate, Query, MsSqlSpatial, OpenGIS, OGC, orm, persistence, SQL Server 2008, PostGis, NTS, SQL Server, csharp, GIS