fluent-nhibernate-mapping Questions

2

Solved

I have two classes Order and Items I want a method like this class Order { public virtual IList<Item> GetItems(Order order) { //get items for that order. } } class Item { public virtua...
Incipient asked 2/2, 2012 at 6:31

3

Solved

A bit of domain knowledge I'm writing a POS (Point Of Sales) software which allows to pay goods or to refund them. When paying or refunding, one need to specify which money transfer mean to use: c...

2

Solved

In most of my projects I use nHibernate + Fluent mapping and recently I've started to play around with Dapper to see if I can move read operations to it. I follow DDD approach so my domain entiti...

3

Solved

I've read all the posts and know that IndexOutOfRange usually happens because a column is being referenced twice. But I don't see how that's happening based on my mappings. With SHOW_SQL true in th...

3

Is there any way to query stored procedure in Fluent Nhibernate without creating an hbm.xml file mapping?
Manoeuvre asked 7/5, 2013 at 9:40

1

Solved

Im a classic programmer that is newbie at generics and this is an asp.net MVC5 sample application for learning purposes of integrating authorization (users/roles) using fluent migrator lib. I wantt...

2

I have two tables in Oracle Entity ---------- **EntityId** NUMBER(9), **EntityName** VARCHAR2 EntityLinks -------------- **EntityLinkId** NUMBER(9),**ParentEntityId** NUMBER(9), **ChildEntityId*...
Phenylketonuria asked 2/4, 2015 at 13:3

3

Before I kick my computer in to next week... I've checked out every other question about this, but none of them have the solution. I've stripped this code right back, but it's still not working. ...

3

Solved

I am coming from an Entity Framework and LLBL background for my ORM tools. I have been asked to build a new system based on NHibernate. I have never done so, so I am coming at it with fresh eyes. ...

3

I am using Fluent Nhibernate and Nhibernate for my current project. I need to record the time to the millisecond. I have this for my mapping Map(x => x.SystemDateTime) .CustomType("Timestamp"...
Tradeswoman asked 20/5, 2010 at 13:20

1

Solved

I have a parent child relationship where I want to return only one parent and load all the children. I am using criteria because it is a dynamic query. var messageQueueId = this.GetPropertyName&lt...

1

I am having the worst trouble trying to setup a HasMany relationship to an entity backed by a table with no primary key. ClassA has a CompositeId. To circumvent the lack of a primary key on Class...

3

Solved

I have the following 2 classes: Advert public virtual int Id { get; set; public virtual IList<AdvertImage> AdvertImages { get; set; } AdvertImage public virtual int Id { get; set; } pu...

1

Solved

Map Class public class cAdministratorMap : ClassMap<cAdministrator> { public cAdministratorMap() { Table("Administrators"); CompositeId<cAdministratorsKey>(c => c.Key) .KeyPr...

0

Is there any possibility to set up R-tree on SQLite database using Fluent NHibernate? And I read that there is new table created as r-tree index so I will then have table of data and table of index...

1

Solved

I'm having a bit of an argument with my co-worker that I can't seem to find an answer to yet this is very basic stuff. Establishing one-to-many relationship in Fluent Nhibernate entity. Let's tak...
Groundless asked 21/5, 2013 at 20:16

1

Solved

I have the following (partial) model: class LogMessage{ string Format; object[] args; } I want to store args[] as a single column in the table, taking advance of the fact that format arguments...

1

I am working with a brownfield database and am trying to configure a subclass map which joins to its subclasses with a column other than that of the specified id. The login table has a primary key ...

3

Solved

I have a class public class Account { public DateTime? StartDate {get;set;} public DateTime? EndDate {get;set;} public bool IsActive {get;set;} } the IsActive property is defined as a fo...
Bollworm asked 19/12, 2012 at 17:10

2

Solved

I'm looking for a way of adding an association between two entities and having a settable Id for the foreign key. I have searched through previous posts, but the closest I can find is a suggestion ...

1

Solved

So i have a situation where i have common base type but i need to map to a different view based on the child type. It looks like i can use a generic mapping class to handle the inheritance http:...
Markup asked 21/10, 2012 at 22:56

1

Solved

i am using Fluent Nhibernate in asp.net mvc3 with c# i am working in following way to generate and map a class Mapping using FluentNHibernate.Mapping; using Com.Web.Domain; namespace Com.Web...

1

Solved

I have a simple Fluent NHibernate model with two related classes: public class Applicant { public Applicant() { Tags = new List<Tag>(); } public virtual int Id { get; set; } //other...
Conflict asked 26/6, 2012 at 18:1

2

In a unidirectional many-to-many relationship between Registration and Item, where a Registration has an ISet<Item> ItemsPurchased and Item has no reference back to registrations (it's not a ...

1

Solved

I'm using fluent NHibernate. I have an app.config file with few specific keys (applicationSettings and userSettings). It seems that the nhibernate doesn't like these keys. As long as these keys e...

© 2022 - 2024 — McMap. All rights reserved.