vote up
0
vote down

Mad Scientist At Work

Just wanted to show some code, and yes, it actually works using (var session = sessionFactory.OpenSession()) { var artist = ruby.ObjectFactory.CreateArtist(); artist.Name = "some name"; session.Save("Artist", artist); session.Flush(); //
Sep 09 2010 08:45 AM
vote up
0
vote down

Untangling the dependency ball! Windsor + NServiceBus + Caliburn + Fluent Nhibernate in one package

Unfortunately nu is still falling short on one thing: Making sure that all the stuff you install is actually compatible with the other stuff you have already installed. There is a ticket for this and I’m fairly confident this will get resolved (please
 
Daniel Hölbling
Sep 07 2010 01:11 PM
vote up
0
vote down

Think Twice Before You Map Entities To DTOs

One thing that i see a lot, and that i have largely started to avoid, is that people fetch entities with NHibernate, only to transform them to DTO’s so you can send them back to the client so they can be displayed in a a grid or some kind of list
Sep 02 2010 03:25 AM
vote up
0
vote down

NHibernate - prepare_sql and some considerations on mapping very long string fields

Recently I’ve switched some of my applications from NHibernate 2.1.x to NHibernate 3, everything was working fine until I encountered a ‘strange behavior’ with the mapping of long string fields (those that should be mapped to nvarchar(max) and
Aug 27 2010 01:14 AM
vote up
0
vote down

Dew Drop – August 17, 2010

Jump to: Top Links | .NET / Visual Studio | Web Development | Design / Methodology / Testing | Silverlight / WPF / Windows Phone | Podcasts / Screencasts / Videos | Community / Events | Database | SharePoint |
Aug 18 2010 04:25 AM
vote up
0
vote down

NHibernate 3.0 QueryOver Syntax is the Bee's Knees

I’ll let a few queries from my current project say all that needs to be said. public IEnumerable GetRolledUpEventsFor(DateTime tradeDate, IEnumerable tickers) { return worker.On(connection, session => { OrderEventRollup rollup = null; return
 
Bobby Johnson
Aug 17 2010 10:31 AM
vote up
0
vote down

NHibernate 3 - Extending the Linq Provider to fix some System.NotSupportedException

With the release of the new version NHibernate (3.0 alpha1), I’ve decided to give it a try and branch my current solution to switch to this new version and see hoe it goes. I was especially interested in the new Linq support, cause I’ve decided to use it
Aug 14 2010 01:18 AM
vote up
0
vote down

New NHibernate Designer features available

Thanks for the feedback Frans! We love feedback here at Mindscape – it’s what makes our products better. Once we know that people want a feature or have found a bug we like to work damn fast at fixing it. That’s why we ship nightly
 
John-Daniel Trask
Aug 13 2010 07:27 PM
vote up
0
vote down

NHibernate - Eager Fetch and Pagination in one query

Let’s consider these mappings: <class name="Item" table="Item"> <id name="Id" column="Id" type="int"> <generator class="native" /> </id> <property
Jul 21 2010 12:23 AM
vote up
0
vote down

NHibernate 2nd level cache: Doing it wrong?

I wrote a couple of weeks ago about how we'd been trying to make use of the NHibernate 2nd level cache and we were able to cache our data by following the various posts that I listed. Unfortunately when we ran some performance tests we found that the
 
Mark Needham
Jun 29 2010 09:47 AM
vote up
0
vote down

NHibernate removes items from Many-To-Many upon Update of Entity due to Model Binding

Imagine the following scenario: Townships has two m:n collections mapped to Region. My Controller has special actions for updating these collections, while there is a generic Edit method that takes care of updating normal properties on Township. The code
 
Daniel Hölbling
Jun 19 2010 07:39 PM
vote up
0
vote down

Fluent NHibernate and the 2nd level cache

We've been trying to cache some objects using NHibernate's second level cache which always proves to be a trickier task than I remember it being the previous time! We're storing some reference data in the database and then using LINQ to NHibernate to
 
Mark Needham
Jun 16 2010 03:07 AM
vote up
0
vote down

Fluent NHibernate: Seeing the mapping files generated

We've been fiddling around with Fluent NHibernate a bit over the last couple of days and one of the things that we wanted to do was output the NHibernate mapping files being generated so we could see if they were as expected. I couldn't figure out how to
 
Mark Needham
Jun 16 2010 01:45 AM
vote up
0
vote down

Review: NHibernate in Action

I've gotten started using NHibernate thanks to what is likely the definitive book on the subject. It's a complex subject, but the book helps clear the initial hurdles.
 
Grant
Jun 10 2010 10:24 AM
vote up
0
vote down

NHibernate 2 Beginner’s Guide – Book Review

dzone_url = "http://blog.codehangover.com/book-review-nhibernate-2-beginners-guide/";Book on Amazon Finally someone has written an in depth beginners book for nhibernate. Nhibernate 2.0 Beginners Guide written by Aaron Cure is just that and more. Wow do
 
Welzie
Jun 09 2010 09:24 AM
vote up
0
vote down

The repository pattern explained and implemented

The pattern documented and named “Repository” is one of the most misunderstood and misused. In this post we’ll implement the pattern in C# to achieve this simple line of code: var customers = customers.Matching(new PremiumCustomersFilter()) as well as
 
Patrik Löwendahl
Jun 07 2010 10:23 AM
vote up
0
vote down

NHibernate presentation at Developer Summit 2010

A couple of hours ago I finished a presentation about NHiberante at the Developer Summit 2010 conference being held here in Stockholm. I have worked with NHibernate in many projects, some greenfield projects but mostly replacing an existing data layer. I
 
Torkel Ödegaard
Jun 01 2010 02:30 PM
vote up
0
vote down

Breaking news: the First European NHibernate Day had been officially announced

Ladies and Gentlemen, DotNetMarche and UgiAlt.NET are proud to introduce to you this very interesting initiative: an entire day devoted to Object Relational Mapping, NHibernate and related technologies. It will take place next Fall in Italy on 9th
May 22 2010 05:02 AM
vote up
0
vote down

NHibernate Day

DotNetMarche e UgiAlt.Net hanno unito le forze per creare il primo evento dedicado ad NHibernate in Italia. Per i dettagli rimando al post di Simone ed al sito dedicato realizzato grazie all’infaticabile Claudio. Let the fun begin!Related ContentAperte
May 19 2010 12:00 AM
vote up
0
vote down

Avoiding Leaking Connections With NHibernate And TransactionScope

One of the applications we’re currently working on wasn’t responding anymore on the development server.  The logfile showed the following message: System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining
May 06 2010 02:46 PM
vote up
0
vote down

Usertypes per database legacy

Mi trovo a lavorare su un database legacy in cui non vengono usati i null sulle reference esterne. Questo significa che la chiave stringa null è pari a stringa vuota e gli interi (16 e 32 bit) sono pari a zero. Per mappare questa casistica su NHibernate
Apr 21 2010 11:28 PM
vote up
0
vote down

Starting NHibernate | Mapping Tables to Objects

After, six months (longest week ever) I have finally gotten some time to continue writing this tutorial about NHibernate. Part 2, takes you into setting up a basic mapping (from a Database Table to a C# Object). We shall do this using a nhibernate
 
Andrew Kharlamov
Apr 21 2010 11:06 PM
vote up
0
vote down

14° Workshop DotNetMarche – Introduzione ai framework per IoC

Pubblicate le slide ed il codice della sessione tenuta al 14° Workshop DotNetMarche Introduzione ai framework ioc View more presentations from andreabalducci. Il codice ed il materiale delle altre sessioni lo potete trovare sul nostro repository pubblico
Apr 21 2010 11:51 AM
vote up
0
vote down

NHibernate: a custom (parametric) UserType to truncate strings

Developing Dexter I encountered again a usual usual error you have to deal with NHibernate and strings: we tried to persist en entity whose string field exceeded the limit imposed by the database table; Nhibernate rightfully complained with:
Mar 26 2010 01:01 PM
vote up
0
vote down

MSDTC Woes With NServiceBus And NHibernate

I’ve spent about 3 days trying to get something working that should’ve just worked.  I basically wanted some .NET code to use a distributed transaction to update some data in a database, and then publish a message on the service bus.  I want to
Mar 19 2010 02:44 PM
vote up
0
vote down

More checking out MongoDB: Updating

In MongoDB, there’s no way to lock a database, collection, or document. The ability to work without locking is a requirement for any db that wishes to be horizontally scalable, and obviously this imposes some limitations and/or possibilities
 
mookid
Mar 19 2010 10:22 AM
vote up
0
vote down

NHibernate, HttpModules, ASP.NET JSON Web Services and Database Transactions

First of all sorry for the frankly appalling title which is actually longer than some of my posts. In order to explain let’s start with a problem definition. These are the elements that were in play: An ASP.NET 3.5 Web Forms based website (although #3
 
Jason Grundy
Mar 18 2010 10:08 PM
vote up
0
vote down

Castle NHibernate Integration Facility: how to get the configuration object

This is a simple tip, I’ve used the Castle Windsor NHibernate Integration Facility to build up the data access services in one of the projects I’m working on, I also wanted to use the NHibernate SchemaExport utilities to build up the database from
Mar 14 2010 11:46 PM
vote up
0
vote down

NHibernate symbol & source server support

A symbol server allows you to debug into code that you don’t have on your machine by querying a symbol server and a source server for the details. SymbolSource.org has added support for NHibernate, and you can download an unofficial build of the current
 
Ayende Rahien
Mar 13 2010 02:58 PM
vote up
0
vote down

NHibernate donation campaign

NHibernate is the most popular Open Source Object Relational Mapper in the .NET framework. As an Open Source project, all the work done on it is done for free. We would like to be able to dedicate more time to NHibernate, but even as a labor of love, the
 
Ayende Rahien
Feb 27 2010 04:20 PM
vote up
0
vote down

To master NHibernate is...

I really like NHibernate, but its error messages drive me crazy. I've just spent an hour figuring out why changing auto-mapped (by Fluent NHibernate) property to .Map().Access.LowerCaseUnderscore() causes Could not determine type for:
Feb 24 2010 04:58 PM
vote up
0
vote down

Fresh Catch For February 18th

These are my new delicious links for February 18th: Zeal Optics Intros World&#8217;s First GPS Integrated Goggle (GPSmagazine.com) Scott Hanselman&#8217;s Computer Zen &#8211; Hanselminutes Podcast 200 &#8211; Jon Skeet! James Bach&#82
 
breki
Feb 18 2010 08:41 PM
vote up
0
vote down

Performance differences between LINQ To SQL and NHibernate

In my current project one of the actions I’ve taken is to have the project and team move away from Linq To Sql to NHibernate. There was a multitude of issues that was the basis for this move, some of the main reasons are outlined in my post:“Top 10
 
Patrik Löwendahl
Feb 15 2010 03:30 PM
vote up
0
vote down

What is the story behind the Entity Framework vs. NHibernate posts?

A while ago I posted several posts about EF vs. NH. They generated quite a bit of commentary, but while I enjoyed the discussion, I had an ulterior motive for doing so. I wanted to do this as a way to do a comparative research about the actual features
 
Ayende Rahien
Jan 29 2010 02:30 PM
vote up
0
vote down

NHibernate is very flexible

…but it does impose limitations on your domain model. Most of these limitations, however, like the need for public/internal/protected members to be virtual, and the requirement for a default constructor to exist with at least protected
 
mookid
Jan 29 2010 11:49 AM
vote up
0
vote down

Nice NHibernate features

According to Ayende's blog, NHibernate finally got two very useful features: 1. Lazy properties - not only classes can be lazy now (more lazyness in the world, yeah!). 2. Better proxies and type matching - "no-proxy" entities will still be lazy-loaded,
Jan 28 2010 06:25 PM
vote up
0
vote down

NHibernate new feature: No proxy associations

About three weeks ago I introduced the problem of ghost objects in NHibernate. In short, given the following model: This code will not produce the expected result: var comment = s.Get<Comment>(8454); if(comment.Post is Article) { // } You can check
 
Ayende Rahien
Jan 28 2010 03:37 PM
vote up
0
vote down

NHibernate new feature: Lazy Properties

This feature is now available on the NHibernate trunk. Please note that it is currently only available when using the Castle Proxy Factory. Lazy properties is a very simple feature. Let us go back to my usual blog example, and take a look at the Post
 
Ayende Rahien
Jan 27 2010 02:52 PM
vote up
0
vote down

Core NHibernate Course in London, 24th February

Well, it is about that time again :-) In about a month I’ll be returning to the UK to give another round of my NHibernate Course. It has been a while since I gave that in London, but the previous two runs were very successful, and I had great time
 
Ayende Rahien
Jan 21 2010 05:35 PM
vote up
0
vote down

NHibernate: Is That Type a Proxy?

One of our applications does some reflection to map customizable content to domain objects. Anyone familiar with NHibernate and lazy loading has probably encountered proxy classes before. My problem: given a Type, I want the domain type.It's easy to find
Jan 20 2010 09:41 PM