I'm new in NHibernate world and I'm starting to build a simple C# Windows Form Application that imports some XLS files into a DB (SQL2008), elaborates data and than exports a CSV file.
I've tried to search some examples to how use and manage…
For collection mapping in NHibernate with ordered collections such as lists, an index column field must be mapped. I just noticed that, as of NHibernate 2.0, there appears to be a "list-index" property as well, which (I believe) can be used in the…
I have a big and complicate SQL query with a DISTINCT clause that gets run in NHibernate (it's a search query with a wide variety of criteria and joins). But I'm having a problem using pagination with it under SQL Server 2008.
My question is: how…
I'm wondering, what are the main reasons for not to use the built-in Entity Framework?
I've read that it's disliked because of its bad implementation, but is this all? And is it still true? (I don't remember the publish date of the article)
I know…
I have tried to enter non ASCII characters in C# identifiers, and the program compiles and runs just fine (at least at first glance). To be more precise, I use Croatian diacritical characters (čćđšž) in enums. I really need to use these special…
I just updated from NHibernate 2.1 to NHibernate 3.1. I found out that the equals operator for the use of Linq was not implemented for other types then string.
I found an article on the internet to solve this problem. This works fine for the basic…
I have an Nhibernate object that has the properties Firstname and Surname, and I'd like to be able to query on both fields (Firstname + " " + Surname); e.g. If the search term is "John Doe", this will be matched when John and Doe are in seperate…
I'm looking for an editor that has the help from
http://www.hibernate.org/hib_docs/nhibernate/html/mapping.html
built in, and allows simple editing of the XML files in a GUI fashion. I realise there's CodeSmith and MyGeneration, but from what I…
I first would like to ask if NHibernate.Burrow works with NHibernate 3.0 (Linq). I would like to use this framework to delegate the complex session handling things to it and just concentrate in the project I'm working on.
Also, what other frameworks…
Using the latest version of NHibernate (and possibly some plugins), is that possible to map entities across multiple databases on different servers without DB link?
For the background, I'm looking to implement something loosely similar to what is…
I would like to improve my code when deleting a group of objects in NHibernate (V3).
Currently, I iterate on a retrieved collection and I call delete on each object. This generates n+1 SQL statements.
I notice that NHibernate Session provides this…
I am a newbie to NHibernate and a bit confused about Castle, LinFu and Spring.
I understand that NHibernate helps in DDD and one can map entities to database using xml or Fluent NHibernate. But wondering how Castle, LinFu and Spring are associated…
I' m writing desktop Project in C#. I'm using Nhibernate to communicate with database. Moreover I use FluentNhibernate into mapping of models but I'm stuck in some part of mapping. Here is My mapping Class in ProductMap
Loosing Map
public…
I'm having trouble trying to think what the best way is to recreate a database object in a controller Action.
I want to make use of ModelBinders so in my action I have access to the object via a parameter, rather than having to repeat code to get an…