~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Misc/Reports/ICSharpCode.Reports.Core/Project/BaseClasses/SqlParameter.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using System.Data;
 
6
 
 
7
namespace ICSharpCode.Reports.Core
 
8
{
 
9
 
 
10
        /// <summary>
 
11
        /// This Class definies a Reportparameter
 
12
        /// </summary>
 
13
        /// <remarks>
 
14
        ///     created by - Forstmeier Peter
 
15
        ///     created on - 30.05.2005 22:20:41
 
16
        /// </remarks>
 
17
        public class SqlParameter : BasicParameter {
 
18
        
 
19
        
 
20
                #region Constructor
 
21
                
 
22
                public SqlParameter ()
 
23
                        :this(String.Empty,DbType.String,String.Empty,ParameterDirection.Input)
 
24
                {
 
25
                        
 
26
                }
 
27
                public SqlParameter(string parameterName,string parameterValue)
 
28
                                :this(parameterName,DbType.String,parameterValue,ParameterDirection.Input)
 
29
                {
 
30
                }
 
31
                
 
32
 
 
33
                
 
34
                public SqlParameter(string parameterName,
 
35
                                    DbType dataType,
 
36
                                    string parameterValue)
 
37
                        :this(parameterName,dataType,parameterValue,ParameterDirection.Input)
 
38
                {
 
39
                }
 
40
                
 
41
                
 
42
                public SqlParameter(string parameterName,
 
43
                                    DbType dataType,
 
44
                                    string parameterValue,
 
45
                                    ParameterDirection parameterDirection):base(parameterName,parameterValue)
 
46
                {
 
47
                        this.DataType = dataType;
 
48
                        this.ParameterDirection = parameterDirection;   
 
49
                        base.Type = DataType.ToString();
 
50
                }
 
51
                
 
52
                #endregion
 
53
                
 
54
                
 
55
        
 
56
                /// <summary>
 
57
                /// DataType of the Parameter
 
58
                /// <see cref="System.Data.DbType">DbType</see>
 
59
                /// </summary>
 
60
                /// 
 
61
                public DbType DataType {get;set;}
 
62
                
 
63
 
 
64
                ///<summary>
 
65
                /// Direction of Parameter 
 
66
                /// <see cref="System.Data.ParameterDirection">ParameterDirection</see>
 
67
                ///</summary>
 
68
                
 
69
                public ParameterDirection ParameterDirection {get;set;}
 
70
                
 
71
        }
 
72
}