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...
Rotherham asked 20/12, 2019 at 7:54
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...
Mantic asked 8/3, 2013 at 17:33
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...
Rote asked 21/5, 2012 at 16:35
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...
Estep asked 25/5, 2015 at 7:42
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.
...
Soma asked 15/11, 2011 at 15:2
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.
...
Aerator asked 20/11, 2012 at 19:22
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<...
Eydie asked 7/11, 2014 at 16:54
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...
Coati asked 7/8, 2014 at 20:5
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...
Hexa asked 1/6, 2012 at 16:12
1
Solved
Map Class
public class cAdministratorMap : ClassMap<cAdministrator>
{
public cAdministratorMap()
{
Table("Administrators");
CompositeId<cAdministratorsKey>(c => c.Key)
.KeyPr...
Endocardial asked 8/8, 2013 at 12:10
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...
Rough asked 22/7, 2013 at 5:14
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...
Oyster asked 30/4, 2013 at 22:33
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 ...
Overstay asked 3/10, 2012 at 22:44
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 ...
Kainite asked 14/8, 2012 at 15:39
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...
Ziska asked 5/10, 2012 at 8:45
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 ...
Vert asked 30/5, 2012 at 20:28
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...
Carrier asked 3/5, 2012 at 21:15
1 Next >
© 2022 - 2024 — McMap. All rights reserved.