fluent-nhibernate
fluent-nhibernate copied to clipboard
Fluent NHibernate!
In NHibernate manual Chapter 6, section 7 (["6.7 using an "](http://nhibernate.info/doc/nhibernate-reference/collections.html)), it describes using an "idbag" as a composite collection of components with an ID. In a [Stackoverflow answer](https://stackoverflow.com/a/31240834/133792) from...
Entities: ```csharp class Base { public string Id{get;set;} public string Name{get;set;} } class MyClass:Base { public int Age{get;set;} } ``` Mapping: ```csharp class BaseMap:ClassMap { Id(x=>x.Id); Map(x=>x.Name); } class MyClassMap:SubClassMap...
Fix Property.Formula mapping override: if a Formula is specified, the Columns collection should be ignored. Without this, if I use automap+overrides, the property will already have a Column property set,...
I have following mapping: ``` HasMany(x => x.Items).Where(x => x.IsDeleted == false); ``` It is translated to SQL like `WHERE (items0_.IsDeleted = 0)` It is incorrect In case I'm using...
I'm fairly new to NHibernate and recently went over from ODM for this new project. Not sure if I'm thinking crazy here with this design or this is a limitation...
I'm new to NHibernate and I need your help. Basically, I took a collection named Patient, mapped to **Patient entity**, and splitted it to two collection on different database/server, **S1.DB1.Patient**,...
Goal: *Use Stored procedure to retrieve the data and then paste it in the class personprofile and order. *Use Fluent Nhibernate in order to retrieve the mapping data that is...
There is an interesting situation when is needed that a UNIQUE CONSTRAINT to take into account a WHERE clause. eg for _SQL Server 2008_: ``` CREATE UNIQUE NONCLUSTERED INDEX idx_yourcolumn_notnull...
In our project we have a lot of classes that are already mapped by "traditional" method - hbm.xml file for each class. In new subprojects we started to introduce fluent...
When mapping this class: ```c# public class DestinationListItemDto { public int DestinationId { get; set; } public Guid Id { get; set; } } public class DestinationListItemDtoMappingOverrides : IAutoMappingOverride {...