Nullable.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 » Nullable.cs
using System;
#if dotnet2
using System.Collections.Generic;
#endif


namespace IBatisNet.DataMapper.Test.Domain{
    public class NullableClass
    {

    public NullableClass()
    {
    }

#if dotnet2
        private int _id = int.MinValue;
        private bool? _testBool = null;
        private byte? _testByte = null;
        private char? _testChar = null;
        private DateTime? _testDateTime = null;
        private decimal? _testDecimal = null;
        private double? _testDouble = null;
        private Guid? _testGuid = null;
        private Int16? _testInt16 = null;
        private Int32? _testInt32 = null;
        private Int64? _testInt64 = null;
        private Single? _testSingle = null;
        private TimeSpan? _testTimeSpan = null;

        public NullableClass(Int32? id)
        {
            _testInt32 = id;
        }

        public TimeSpan? TestTimeSpan
        {
            get { return _testTimeSpan; }
            set { _testTimeSpan = value; }
        }

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

        public bool? TestBool
        {
            get { return _testBool; }
            set { _testBool = value; }
        }

        public byte? TestByte
        {
            get { return _testByte; }
            set { _testByte = value; }
        }

        public char? TestChar
        {
            get { return _testChar; }
            set { _testChar = value; }
        }

        public DateTime? TestDateTime
        {
            get { return _testDateTime; }
            set { _testDateTime = value; }
        }

        public decimal? TestDecimal
        {
            get { return _testDecimal; }
            set { _testDecimal = value; }
        }

        public double? TestDouble
        {
            get { return _testDouble; }
            set { _testDouble = value; }
        }

        public Guid? TestGuid
        {
            get { return _testGuid; }
            set { _testGuid = value; }
        }

        public Int16? TestInt16
        {
            get { return _testInt16; }
            set { _testInt16 = value; }
        }

        public Int32? TestInt32
        {
            get { return _testInt32; }
            set { _testInt32 = value; }
        }

        public Int64? TestInt64
        {
            get { return _testInt64; }
            set { _testInt64 = value; }
        }


        public Single? TestSingle
        {
            get { return _testSingle; }
            set { _testSingle = value; }
        }  
#else
        private int _id = int.MinValue;
        private bool _testBool = false;
        private byte _testByte = 1;
        private char _testChar = 'a';
        private DateTime _testDateTime = DateTime.MinValue;
        private decimal _testDecimal = 0;
        private double _testDouble = 0;
        private Guid _testGuid = Guid.NewGuid();
        private Int16 _testInt16 = 0;
        private Int32 _testInt32 = 0;
        private Int64 _testInt64 = 0;
        private Single _testSingle = 0;
    private TimeSpan _testTimeSpan;

    public NullableClass(int id)
    {
      _id = id;
    }

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

        public bool TestBool
        {
            get { return _testBool; }
            set { _testBool = value; }
        }

        public byte TestByte
        {
            get { return _testByte; }
            set { _testByte = value; }
        }

        public char TestChar
        {
            get { return _testChar; }
            set { _testChar = value; }
        }

        public DateTime TestDateTime
        {
            get { return _testDateTime; }
            set { _testDateTime = value; }
        }

        public decimal TestDecimal
        {
            get { return _testDecimal; }
            set { _testDecimal = value; }
        }

        public double TestDouble
        {
            get { return _testDouble; }
            set { _testDouble = value; }
        }

        public Guid TestGuid
        {
            get { return _testGuid; }
            set { _testGuid = value; }
        }

        public Int16 TestInt16
        {
            get { return _testInt16; }
            set { _testInt16 = value; }
        }

        public Int32 TestInt32
        {
            get { return _testInt32; }
            set { _testInt32 = value; }
        }

        public Int64 TestInt64
        {
            get { return _testInt64; }
            set { _testInt64 = value; }
        }


        public Single TestSingle
        {
            get { return _testSingle; }
            set { _testSingle = value; }
        }  
#endif

    }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.