Click here to Skip to main content
15,888,351 members
Articles / Programming Languages / C#

NHibernate in real world applications

Rate me:
Please Sign up or sign in to vote.
4.31/5 (62 votes)
11 Nov 2004CPOL8 min read 521.5K   7.9K   172  
How to use NHibernate in real world apps.
using System;
using System.Collections;

namespace nhibernator.BLL
{
	/// <summary>
	/// Summary description for Customer.
	/// </summary>
	public class Customer
	{
		#region Private Internal Members
		
		private string m_CustomerID,m_CompanyName,m_ContactName,m_Address,m_City,m_Region,m_PostalCode,m_Country;
		private IDictionary m_Orders;
		#endregion
		
		#region Public Properties

		public string CustomerID
		{
			get
			{
				return m_CustomerID;
			}
			set
			{
				m_CustomerID = value;
			}

		}


		public string CompanyName
		{
			get
			{
				return m_CompanyName;
			}
			set
			{
				m_CompanyName = value;
			}
		}


		public string ContactName
		{
			get
			{
				return m_ContactName;
			}
			set
			{
				m_ContactName = value;
			}
		}


		public string Address
		{
			get
			{
				return m_Address;
			}
			set
			{
				m_Address = value;
			}
		}
		

		public string City
		{
			get
			{
				return m_City;
			}
			set
			{
				m_City = value;
			}
		}


		public string Region
		{
			get
			{
				return m_Region;
			}
			set
			{
				m_Region = value;
			}
		}


		public string PostalCode
		{
			get
			{
				return m_PostalCode;
			}
			set
			{
				m_PostalCode = value;
			}
		}


		public string Country
		{
			get
			{
				return m_Country;
			}
			set
			{
				m_Country = value;
			}
		}
		
		public IDictionary Orders
		{
			get
			{
				return m_Orders;
			}
			set
			{
				m_Orders = value;
			}
		}


		#endregion
	
		
		
		
		
		public Customer()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}

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
United States United States
I've been involved with software development since teaching Basic to teachers in 6th grade. Since then I've been involved with every aspect of computers.

Lately, I've involved myself very much in building Entperise Java and .Net applications.

Comments and Discussions