Questions tagged [ncommon]

16 questions
23
votes
2 answers

How to implement correctly IUserType?

I need to create a custom type for NHibernate by writing a new mapper class that implements IUserType. While it is relatively straightforward to override most of the methods and properties, I get some difficulties to understand how to deal correctly…
Yann Trevin
  • 3,823
  • 1
  • 30
  • 32
7
votes
1 answer

NCommon - resources, documentation

I like NCommon project, but the lack of resources and documentation makes it very hard to use. Does anyone of you know some good resources, examples...? I figured out some basic setting, like Repository Pattern etc. But i'm completly lost i.e. with…
Feryt
  • 2,262
  • 2
  • 22
  • 32
2
votes
1 answer

Any Alternatives to NCommon?

I like the way NCommon saves me from dealing with all the plumbing required to do DDD with NHibernate. I like it so much that it I am seriously considering it to be part of my default architecture in new projects. I'd like to ask if there are other…
Jonas Arcangel
  • 2,085
  • 11
  • 55
  • 85
2
votes
1 answer

Deleting and Adding child entities in same transaction confusing nhibernate

I'm getting the classic error: 'deleted object would be re-saved by cascade (remove deleted object from associations)[DrillingContracts.Domain.TrackedField#3216' But with an added twist, The error is originating entirely because I'm deleting one…
Seth
  • 954
  • 1
  • 15
  • 42
1
vote
1 answer

CastleWindsor + NHibernate + NCommon IRepository: how to auto-register?

I'm trying to auto-register NHibernate entities as NCommon IRepository's using Castle and I can't figure it out. On a previous project, we used autofac and this is how we accomplished it: autofacContainerBuilder.RegisterGeneric(typeof…
znelson
  • 919
  • 1
  • 10
  • 24
1
vote
1 answer

How to execute a Stored Procedure with NCommon and EntityFramework

I'm using NCommon for DDD layer and Entity Framework. I would like to execute a Stored Procedure but not sure how you go about it.
David Cruwys
  • 6,262
  • 12
  • 45
  • 91
0
votes
1 answer

Is there a good sample MVC application using NCommon?

My searches are not surfacing anything. Does anyone know of a good sample MVC application that uses the NCommon framework? We are looking for a good framework that will support either EF 4 or NHibernate 3. NCommon appears to fit the bill in that…
camainc
  • 3,750
  • 7
  • 35
  • 46
0
votes
1 answer

NCommon 1.1 and EF4

I am new to NCommon and am looking for an example project to get started. I am using EF4. I assume one needs to use EF4 with POCOs? Thanks for any help.
tvt
  • 1
  • 1
0
votes
1 answer

How to register NCommon with StruceMap?

IM using NCommon with NHibernate and would like to use StruceMap as my IOC. Doesnt anyone know how to register NCommon with StructureMap? Here is the info on NCommon. https://github.com/riteshrao/ncommon/ Here is how its done with Castle Windsor …
Todd
  • 1,780
  • 7
  • 32
  • 54
0
votes
1 answer

Using Autofac, NCommon, and Fluent NHibernate, call a stored procedure

I'm having a problem trying to use these three libraries in a project. I understand and therefore calling stored procedures isn't directly supported in Fluent NHibernate according to their FAQ. So I defined a simple hbl.xml file with a mapping…
Milimetric
  • 13,411
  • 4
  • 44
  • 56
0
votes
1 answer

DDD - Enity Framework 4 and ncommon

I'm trying to get EF4 working with ncommon 1.1 which provides DDD patterns such as UnitOfWork, Specification, Repository. The NCommon configuration line is throwing the following Exception: SynchronizationLockException occurred Object…
David Cruwys
  • 6,262
  • 12
  • 45
  • 91
0
votes
2 answers

NCommon - changes in 1.1

I updated my NCommon version to 1.1. It looks like there are breaking changes. What happened to: the Store container class? the NHRepository constructor that accepts an ISession? How should I modify my code to address these changes?
Jonas Arcangel
  • 2,085
  • 11
  • 55
  • 85
0
votes
1 answer

Deleted object resaved by cascade - self referencing table

I'm getting the following error: "deleted object would be re-saved by cascade (remove deleted object from associations)" I have trimmed the entirety of the ajax call to the following: [HttpPost] [UnitOfWork(Scope = FilterScope.Result)] …
Seth
  • 954
  • 1
  • 15
  • 42
0
votes
1 answer

NCommon Newbie Help

I'm writing this Console app to try out NCommon. The code below doesn't get me anything back. (This is using AdventureWorks db.) class Program { static void Main(string[] args) { ISessionFactory factory =…
0
votes
1 answer

nHibernate Eager Loading at runtime

We're using NCommon's UnitOfWorkScope which wraps nHibernate ISession functionality. Our goal is to eager-load complex properties on demand vs. always eagerly loading them via configuration. The idea is that a given service that retrieves an entity…
znelson
  • 919
  • 1
  • 10
  • 24
1
2