Click here to Skip to main content
15,886,578 members
Articles / Desktop Programming / WPF

The WPF-NHibernate Toolkit

Rate me:
Please Sign up or sign in to vote.
4.98/5 (23 votes)
16 Jan 2010CPOL28 min read 159.1K   3.3K   114  
Adapt NHibernate classes to run in WPF
using System.Collections.Generic;

namespace VmWrapperDemo.Domain
{
    public class Customer
    {
        #region Constructors

        /// <summary>
        /// Default constructor
        /// </summary>
        public Customer()
        {
        }

        /// <summary>
        /// Property-setting constructor.
        /// </summary>
        /// <param name="name">The customer's name.</param>
        /// <param name="contact">The name of the contact person at the customer.</param>
        public Customer(string name, string contact)
        {
            this.Name = name;
            this.Contact = contact;
            this.Orders = new List<Order>();
        }

        #endregion

        #region Properties

        /// <summary>
        /// The name of the contact person at the customer.
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// The customer's name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Orders placed by the customer.
        /// </summary>
        public IList<Order> Orders { get; set; }

        #endregion
    }
}

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) Foresight Systems
United States United States
David Veeneman is a financial planner and software developer. He is the author of "The Fortune in Your Future" (McGraw-Hill 1998). His company, Foresight Systems, develops planning and financial software.

Comments and Discussions