Click here to Skip to main content
15,896,544 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 522.8K   7.9K   172  
How to use NHibernate in real world apps.
using System;

namespace nhibernator.BLL
{
	/// <summary>
	/// Summary description for Product.
	/// </summary>
	public class Product
	{
		
		#region private internal members
		private int m_OrderID;
		private int m_ProductID;
		private string m_ProductName;
		private decimal m_UnitPrice;
		
		#endregion
		
		#region public properties
		

		public int ProductID
		{
			get
			{
				return m_ProductID;
			}
			set
			{
				m_ProductID = value;
			}
		}
		

		public string ProductName
		{
			get
			{
				return m_ProductName;
			}
			set
			{
				m_ProductName = value;
			}

		}


		public decimal UnitPrice
		{
			get
			{
				return m_UnitPrice;
			}
			set
			{
				m_UnitPrice = value;
			}
		}
		#endregion



		public Product()
		{
			//
			// 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