All pastes #106164 Raw Edit

AqD

public text v1 · immutable
#106164 ·published 2006-07-30 04:15 UTC
rendered paste body
using NHMA = NHibernate.Mapping.Attributes;

namespace Trung.Model
{
    // Map to [Account] table
    [NHMA.Class]
    public class Account: AqDWeb.Utils.PersistentEntityTemplate
    {
        private string _accountId = "";
        private string _name = "";
        private float _money = 0;

        // Map to [ID] column
        [NHMA.Property(Length=255)]
        public virtual string AccountID
        {
            set {
                _accountId = value;
            }

            get {
                return _accountId;
            }
        }

        // Map to [Name] column
        [NHMA.Property(Length=255)]
        public virtual string Name
        {
            set {
                _name = value;
            }

            get {
                return _name;
            }
        }

        // Map to [Money] column
        [NHMA.Property]
        public virtual float Money
        {
            set {
                _money = value;
            }

            get {
                return _money;
            }
        }
    }
}