The nhibernate tag has no wiki summary.
1
vote
0answers
141 views
.NET software design and Oracle ODP.NET UDT
I'm working on a new common .NET software design (mainly) for WCF-based web service applications with related client frontends (all written in C#). As far I've chosen some frameworks ...
4
votes
1answer
98 views
Should I Use an ORM only when dealing with Data Model objects?
I am new to ORM, and we started developing a new system using NHibernate as the ORM.
I think this question may refer to any ORM and any language/platform.
The Team Leader has said we should use ...
1
vote
1answer
146 views
A multi tenant data architecture
We are at a planning & redesign stage of our loyalty card application. As it is understood it will be a multi-tenant application. And I need to take your thoughts. Here are the some key points we ...
2
votes
1answer
122 views
Testing controller logic that uses ISession directly
I have just read this blog post from Jimmy Bogard and was drawn to this comment.
Where this falls down is when a component doesn’t support a given
layering/architecture. But even with ...
1
vote
1answer
292 views
Abstraction Layer over ORM Generated Entities
I am learning LINQ to SQL (and planning to learn Entity Framework). Initially I used a abstraction layer to convert LINQ to SQL entities into a domain objects. Later I discovered the “Inheritance ...
1
vote
2answers
537 views
What are the best practices to use NHiberante sessions in asp.net (mvc/web api) ?
I have the following setup in my project:
public class WebApiApplication : System.Web.HttpApplication
{
public static ISessionFactory SessionFactory { get; private set; }
public ...
1
vote
1answer
207 views
Is it ok to call external services or database inside the entity
I have "logic engine" which executes set of user configured steps. These steps are saved in the database as "Step" entities. The engine gets the first step and then executes steps until there are no ...
3
votes
3answers
2k views
DDD with ORM where should the business logic go?
I have used an MDA (model driven architecture) tool in the past where we modeled via UML and this generated the business entities (our domain model) and the ORM (mapping etc) amongst other things.
A ...
2
votes
3answers
189 views
Offline data that will need imported later
My existing application is a .NET 3.0 winform app that talks to a WCF service which in turn updates a MS SQL Server database; I can make changes at all spots (Windows client, WCF, server). I've had an ...
9
votes
2answers
2k views
Why is the Repository pattern needed in NHibernate?
I am reading the official Your first NHibernate based application.
While the tutorial is good and easy to follow, I am wondering why the Repository pattern is used.
In the various Add, Update, ...
4
votes
2answers
2k views
How do I grok NHibernate's QueryOver API?
I've run into the limits of what NHibernate 3.0's LINQ provider is capable of and decided it's time to learn about one of the more powerful (or at least feature-complete) options: the QueryOver API.
...
8
votes
2answers
968 views
EF vs. NHibernate [closed]
In the past 2 years since I started writing business applications (before I did either high level front end or very low level systems programming), learned datasets, linq to sql, and now entity ...
16
votes
3answers
4k views
What are the most common mistakes and anti-patterns NHibernate user programmers make?
What are the most common mistakes and anti-patterns NHibernate user programmers make? Please explain why those are bad practices or give link to resource for further reading.
For example:
One ...
12
votes
8answers
2k views
Is writing your own Data Access / Data Mapping Layer a “good” idea?
We're currently in a situation where we have a choice between using an out-of-the-box object-relational mapper or rolling our own
We have a legacy application (ASP.NET + SQL Server) where the ...
1
vote
1answer
492 views
What is the benefit of using sharp architecture?
I'm working in a project that use nhibernate as orm. Is there any benefit for me to use sharp architecture? what is these benefits?