nhibernate-mapping Questions

3

Solved

Hl Guys, I am busy writing a backend administrative program for a system that exists. I have selected NHibernate for my data access solution and am fairly new to it. I am experiencing the followin...
Microdot asked 18/9, 2010 at 10:57

2

Solved

I have a question on Cascade enum options behavior when using NHibernate Mapping By Code. Enum has following options: [Flags] public enum Cascade { None = 0, Persist = 2, Refresh = 4, Merge =...
Farm asked 21/1, 2013 at 12:25

2

Solved

I have the following tables in my database: Announcements: - AnnouncementID (PK) - Title AnouncementsRead (composite PK on AnnouncementID and UserID): - AnnouncementID (PK) - UserID (PK) - DateRe...

2

Solved

Is there a reason not to use dynamic-insert/dynamic-update for NHibernate? The only reason I ask is that it seems to be something that I would want enabled as the default, not as something I would ...
Orphrey asked 19/12, 2012 at 14:49

1

Current Approach In an ASP.NET web forms app (using Spring.NET and NHibernate) we have an aggregate root (Person) whose details are captured across a number of screens/pages. The Person entity exi...
Impanel asked 7/12, 2012 at 16:27

3

Solved

I used this How do you map an enum as an int value with fluent NHibernate? to map in the past but I've recently upgraded to NHibernate 3 and this doesn't seem to work anymore. I've put breakpoints ...
Classis asked 21/3, 2011 at 19:0

2

Solved

I would like to refresh an entity and all its child collections. What is the best way to do this? I'm talking about nhibernate:) I've read about session.Evict, session.Refresh... But I'm still no...
Endways asked 5/11, 2010 at 14:2

1

Solved

I'm playing around with Sharp Architecture Lite, which emphasizes convention over configuration, and trying to understand how the NHibernate ConventionModelMapper works. Specifically, I can't tell ...

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...

3

Let's say I have the following entity: public class CalculationInfo { public virtual Int64 Id { get; set; } public virtual decimal Amount { get; set; } public virtual decimal SomeVariable { g...
Shulins asked 22/6, 2010 at 17:52

1

Solved

I'm working with a legacy database, and I have the following tables: Person ExternalFile ------ ------------ Id (int, PK) Key (string) ConnectionId (int) Type (int) Name (string) ConnectionId (int...
Subdominant asked 7/9, 2012 at 8:9

3

Solved

I'm testing out NHibernate to be the solution to my company's ORM needs. To do this, I've produced a small test model based on a school, providing some useful edge-cases for NHibernate to handle. ...
Azeria asked 31/12, 2009 at 11:13

3

What is hibernate and n-hibernate? can I use it in Visual Studio 2008 for C# Web Application development ? Pls Suggest me... I am newer to asp.net web application Developement. Just I heard about H...

3

Solved

I have a Users table where the "ID" field is a GUID field. Using ASPNET I am creating a user account and getting the GUID back. I am trying to create associated records in my tables with that GUID...
Nemertean asked 3/6, 2010 at 22:5

4

Solved

My project needs to handle three databases, that means three session factories. The thing is if i do something like this with fluent nhibernate: .Mappings(m => m.FluentMappings.AddFromAssembly(...
Robi asked 16/4, 2010 at 20:19

3

Solved

I'm working on setting up NHibernate for a project and I have a few queries that, due to their complexity, we will be leaving as stored procedures. I'd like to be able to use NHibernate to call the...
Pugging asked 2/4, 2010 at 19:31

1

Solved

I'm doing some tests using NHibernate and I currently have two mapped entities, Orders and Products. As always an Order has a collection of Products, and I'm mapping this as: <bag name="Product...
Pronucleus asked 8/6, 2012 at 19:52

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 ...

2

Solved

this is almost the same as this question except using NH's mapping-by-code. I really need the virtual properties because i also want to use SchemaExport to create the database for different rdbms ...

1

First of all, yes, I am using DistinctRootEntityResultTransformer. I have the following (Fluent NHibernate) mapping: public FirstObjectMap() { Id(x => x.Id): HasMany<SecondObject>(x =...

3

Solved

Took me a while to find an answer for this so thought I'd share the love. When using NHibernate's new mapping by code with SQL Server I'm unable to save an entity. When saving an entity a System...

2

Solved

The ModelInspector doesn't seem to provide the means to define Filter definitions . Any ideas/Workarounds? I need to generate the following with mappings by code: <filter-def name="filterName"...
Ninanincompoop asked 27/10, 2011 at 21:1

2

Solved

In hbm mappings I can <composite-id> [..] <key-property name="someStringProperty" column="somefield" type="AnsiString" lenght="8"/> </composite-id> How do I do that (se...
Fuentes asked 12/10, 2010 at 13:41

3

Solved

I have an NHibernate Linq query which isn't working how I would expect. The problem seems to come from using a nullable int column from a left joined table in the where clause. This is causing the...
Madeleinemadelena asked 17/2, 2012 at 12:4

3

Solved

I've following mapping for two tables having a Many-to-Many relationship between them. How do I delete an entry from the mapping table, which is 'ProjectUser' in my case? public ProjectMap() { Id...

© 2022 - 2024 — McMap. All rights reserved.