Top "Nhibernate" questions

NHibernate is an open source object-relational mapper (ORM) for the .NET framework.

How do I Insert or Update (or overwrite) a record using NHibernate?

I need to write a row to the database regardless of whether it already exists or not. Before using NHibernate …

nhibernate insert-update overwrite upsert
NHibernate vs LINQ to SQL

As someone who hasn't used either technology on real-world projects I wonder if anyone knows how these two complement each …

linq nhibernate linq-to-sql orm
Convert from Oracle's RAW(16) to .NET's GUID

I'm having difficulties manually debugging an .NET application where the Guid values differ from .NET to Oracle. Where C# reads: 17…

c# oracle nhibernate guid s#arp-architecture
Unable to cast object of type NHibernate.Collection.Generic.PersistentGenericBag to List

I have a class called ReportRequest as: public class ReportRequest { Int32 templateId; List<Int32> entityIds; public virtual Int32? …

nhibernate fluent-nhibernate nhibernate-mapping
nHibernate, No row with the given identifier exists

I have a mapping along the lines of this. <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Model.Entities" schema="etl" assembly="…

c# nhibernate nhibernate-mapping
NHibernate - CreateCriteria vs CreateAlias

Assuming the following scenario: class Project{ public Job Job; } class Job{ public Name; } Assuming I want to use the Criteria …

performance nhibernate criteria icriteria
How to persist an enum using NHibernate

Is there a way to persist an enum to the DB using NHibernate? That is have a table of both …

nhibernate enums persistence foreign-keys
How to configure Fluent NHibernate to output queries to Trace or Debug instead of Console?

How to configure Fluent NHibernate to output queries to Trace or Debug instead of Console? I'm using MsSqlConfiguration.MsSql2008.ShowSql() …

c# .net asp.net nhibernate fluent-nhibernate
DTO naming conventions , modeling and inheritance

We are building a web app using AngularJS , C# , ASP.Net Web API and Fluent NHibernate. We have decided to …

c# nhibernate dto
Hibernate Criteria for "in subselect"

I'm trying to do something like this, but using Criteria instead of HQL: select user from User where user in ( …

hibernate nhibernate subquery criteria