Order.cs :  » Persistence-Frameworks » iBATIS.NET » IBatisNet » DataMapper » Test » Domain » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Persistence Frameworks » iBATIS.NET 
iBATIS.NET » IBatisNet » DataMapper » Test » Domain » Order.cs
using System;
using System.Collections;
#if dotnet2
using System.Collections.Generic;
#endif

namespace IBatisNet.DataMapper.Test.Domain{
  /// <summary>
  /// Description rsume de Order.
  /// </summary>
  [Serializable]
  public class Order
  {
    private int _id;
    private Account _account;
    private DateTime _date;
    private string _cardType;
    private string _cardNumber;
    private string _cardExpiry;
    private string _street;
    private string _city;
    private string _province;
    private string _postalCode;
    private IList _lineItemsIList ;//= new ArrayList();
        private LineItemCollection _collection;
    private LineItem[] _lineItemsArray;
    private LineItem _favouriteLineItem;

    public Order()
    {}

    public Order(int id, Account account)
    {
      _id = id;
      _account = account;
    }

    public Order(int id, Account account, IList lineItems)
    {
      _id = id;
      _account = account;
      _lineItemsIList = lineItems;
    }

    public Order(int id, Account account, LineItem[] lineItemsArray)
    {
      _id = id;
      _account = account;
      _lineItemsArray = lineItemsArray;
    }

    public Order(int id, Account account, LineItemCollection collection)
    {
      _id = id;
      _account = account;
            _collection = collection;
    }


#if dotnet2
        private IList<LineItem> _genericList;
        public IList<LineItem> LineItemsGenericList
        {
            get { return _genericList; }
            set { _genericList = value; }
        }

        private LineItemCollection2 _genericCollection = null;
        public LineItemCollection2 LineItemsCollection2
        {
            get { return _genericCollection; }
            set { _genericCollection = value; }
        }

        public Order(IList<LineItem> lineItems)
        {
            _genericList = lineItems;
        }

        public Order(LineItemCollection2 collection)
        {
            _genericCollection = collection;
        }
#else
        private IList _genericList;
        public IList LineItemsGenericList
        {
            get { return _genericList; }
            set { _genericList = value; }
        }

    public LineItemCollection LineItemsCollection2
    {
      get { return _collection; }
      set { _collection = value; }
    }

        public Order(IList lineItems)
        {
            _genericList = lineItems;
        }

        public Order(LineItemCollection collection)
        {
            _collection = collection;
        }
#endif

        public LineItem FavouriteLineItem
    {
      get { return _favouriteLineItem; }
      set { _favouriteLineItem = value; }
    }

    public IList LineItemsIList
    {
      get { return _lineItemsIList; }
      set { _lineItemsIList = value; }
    }


        public LineItemCollection LineItemsCollection
    {
            get { return _collection; }
            set { _collection = value; }
    }

    public LineItem[] LineItemsArray
    {
      get { return _lineItemsArray; }
      set { _lineItemsArray = value; }
    }

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

    public string Province
    {
      get { return _province; }
      set { _province = value; }
    }

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

    public string Street
    {
      get { return _street; }
      set { _street = value; }
    }

    public string CardExpiry
    {
      get
      {
        return _cardExpiry; 
      }
      set
      { 
        _cardExpiry = value; 
      }
    }

    public string CardNumber
    {
      get
      {
        return _cardNumber; 
      }
      set
      { 
        _cardNumber = value; 
      }
    }

    public string CardType
    {
      get
      {
        return _cardType; 
      }
      set
      { 
        _cardType = value; 
      }
    }

    public virtual Account Account
    {
      get { return _account; }
      set { _account = value; }
    }

    public int Id
    {
      get
      {
        return _id; 
      }
      set
      { 
        _id = value; 
      }
    }

    public DateTime Date
    {
      get
      {
        return _date; 
      }
      set
      { 
        _date = value; 
      }
    }

    public DateTime OrderDate {
      get {
        return _date; 
      }
      set { 
        _date = value; 
      }
    }
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.