Click here to Skip to main content
15,881,812 members
Articles / Web Development / ASP.NET

Simple NHibernate Architecture

Rate me:
Please Sign up or sign in to vote.
4.91/5 (38 votes)
11 Sep 2012CPOL3 min read 133.1K   3.2K   145  
An article showing a nice architecture I've come up for using NHibernate

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "C:\...\Web\", "Web\", "{24B218F9-320A-4175-B2C3-13E3F874369E}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.VirtualPath = "/Web"
		Debug.AspNetCompiler.PhysicalPath = "..\..\..\..\Desktop\NHibernateSample\NHibernateSample\Web\"
		Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Web\"
		Debug.AspNetCompiler.Updateable = "true"
		Debug.AspNetCompiler.ForceOverwrite = "true"
		Debug.AspNetCompiler.FixedNames = "false"
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.VirtualPath = "/Web"
		Release.AspNetCompiler.PhysicalPath = "..\..\..\..\Desktop\NHibernateSample\NHibernateSample\Web\"
		Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Web\"
		Release.AspNetCompiler.Updateable = "true"
		Release.AspNetCompiler.ForceOverwrite = "true"
		Release.AspNetCompiler.FixedNames = "false"
		Release.AspNetCompiler.Debug = "False"
		VWDPort = "3601"
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared.NHibernateDAL", "NHibernateDAL\Shared.NHibernateDAL.csproj", "{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Business", "Business\Business.csproj", "{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|.NET = Debug|.NET
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Release|.NET = Release|.NET
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Debug|.NET.ActiveCfg = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Debug|.NET.Build.0 = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Debug|Any CPU.ActiveCfg = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Debug|Mixed Platforms.Build.0 = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Release|.NET.ActiveCfg = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Release|.NET.Build.0 = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Release|Any CPU.ActiveCfg = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
		{24B218F9-320A-4175-B2C3-13E3F874369E}.Release|Mixed Platforms.Build.0 = Debug|.NET
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Debug|.NET.ActiveCfg = Debug|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Release|.NET.ActiveCfg = Release|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Release|Any CPU.Build.0 = Release|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{4D8D4B76-C721-43FF-9C9D-3DA5654FCE42}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Debug|.NET.ActiveCfg = Debug|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Release|.NET.ActiveCfg = Release|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Release|Any CPU.Build.0 = Release|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{7BDE3FCD-CA41-4774-AAA0-67AC1B719E82}.Release|Mixed Platforms.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Intelligent Coder
Canada Canada
I've been developing .NET enterprise applications since 2000.

I am originally from Rio de Janeiro and I am currently working at http://www.intelligentcoder.com in Ontario.

I also have my own startup where we offer client intake forms.

Comments and Discussions