DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Client.DeveelDbParameter Class Reference
Inheritance diagram for Deveel.Data.Client.DeveelDbParameter:

Public Member Functions

override void ResetDbType ()
 

Properties

override DbType DbType [get, set]
 
SqlTypeCode SqlType [get, set]
 
override System.Data.ParameterDirection Direction [get, set]
 
override bool IsNullable [get, set]
 
override string ParameterName [get, set]
 
override string SourceColumn [get, set]
 
override DataRowVersion SourceVersion [get, set]
 
override object Value [get, set]
 
override bool SourceColumnNullMapping [get, set]
 
override int Size [get, set]
 
byte IDbDataParameter. Precision [get, set]
 
byte IDbDataParameter. Scale [get, set]
 
byte Precision [get, set]
 
byte Scale [get, set]
 
string Locale [get, set]
 

Private Member Functions

void ResetSqlType ()
 

Private Attributes

SqlTypeCode typeCode
 
DbType dbType
 

Detailed Description

Definition at line 24 of file DeveelDbParameter.cs.

Member Function Documentation

override void Deveel.Data.Client.DeveelDbParameter.ResetDbType ( )
inline

Definition at line 28 of file DeveelDbParameter.cs.

28  {
29  if (typeCode == SqlTypeCode.Bit ||
30  typeCode == SqlTypeCode.Boolean) {
31  dbType = DbType.Boolean;
32  } else if (typeCode == SqlTypeCode.TinyInt) {
33  dbType = DbType.Byte;
34  } else if (typeCode == SqlTypeCode.SmallInt) {
35  dbType = DbType.Int16;
36  } else if (typeCode == SqlTypeCode.Integer) {
37  dbType = DbType.Int32;
38  } else if (typeCode == SqlTypeCode.BigInt) {
39  dbType = DbType.Int64;
40  } else if (typeCode == SqlTypeCode.Real ||
41  typeCode == SqlTypeCode.Float) {
42  dbType = DbType.Single;
43  } else if (typeCode == SqlTypeCode.Double) {
44  dbType = DbType.Double;
45  } else if (typeCode == SqlTypeCode.Decimal) {
46  dbType = DbType.Decimal;
47  } else if (typeCode == SqlTypeCode.Numeric) {
48  dbType = DbType.VarNumeric;
49  } else {
50  throw new NotSupportedException(String.Format("The SQL Type '{0}' cannot be converted to DbType.", typeCode));
51  }
52  }
A long string in the system.
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
Definition: SqlTypeCode.cs:23
void Deveel.Data.Client.DeveelDbParameter.ResetSqlType ( )
inlineprivate

Definition at line 54 of file DeveelDbParameter.cs.

54  {
55  if (dbType == DbType.String ||
56  dbType == DbType.AnsiString) {
57  typeCode = SqlTypeCode.VarChar;
58  } else if (dbType == DbType.StringFixedLength ||
59  dbType == DbType.AnsiStringFixedLength) {
60  typeCode = SqlTypeCode.Char;
61  } else if (dbType == DbType.Binary) {
62  typeCode = SqlTypeCode.Binary;
63  } else if (dbType == DbType.Boolean) {
64  typeCode = SqlTypeCode.Boolean;
65  } else if (dbType == DbType.Byte) {
66  typeCode = SqlTypeCode.TinyInt;
67  } else if (dbType == DbType.Int16) {
68  typeCode = SqlTypeCode.SmallInt;
69  } else if (dbType == DbType.Int32) {
70  typeCode = SqlTypeCode.Integer;
71  } else if (dbType == DbType.Int64) {
72  typeCode = SqlTypeCode.BigInt;
73  } else if (dbType == DbType.Single) {
74  typeCode = SqlTypeCode.Float;
75  } else if (dbType == DbType.Double) {
76  typeCode = SqlTypeCode.Double;
77  } else if (dbType == DbType.VarNumeric ||
78  dbType == DbType.Decimal ||
79  dbType == DbType.Currency) {
80  typeCode = SqlTypeCode.Numeric;
81  } else if (dbType == DbType.Date ||
82  dbType == DbType.DateTime2) {
83  typeCode = SqlTypeCode.Date;
84  } else if (dbType == DbType.DateTime ||
85  dbType == DbType.DateTimeOffset) {
86  typeCode = SqlTypeCode.TimeStamp;
87  } else if (dbType == DbType.Time) {
88  typeCode = SqlTypeCode.Time;
89  } else if (dbType == DbType.Object ||
90  dbType == DbType.Xml) {
91  typeCode = SqlTypeCode.Type;
92  } else {
93  throw new NotSupportedException(String.Format("The DbType '{0}' is not supported by DeveelDB engine", dbType));
94  }
95  }
A long string in the system.
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
Definition: SqlTypeCode.cs:23

Member Data Documentation

DbType Deveel.Data.Client.DeveelDbParameter.dbType
private

Definition at line 26 of file DeveelDbParameter.cs.

SqlTypeCode Deveel.Data.Client.DeveelDbParameter.typeCode
private

Definition at line 25 of file DeveelDbParameter.cs.

Property Documentation

override DbType Deveel.Data.Client.DeveelDbParameter.DbType
getset

Definition at line 97 of file DeveelDbParameter.cs.

override System.Data.ParameterDirection Deveel.Data.Client.DeveelDbParameter.Direction
getset

Definition at line 113 of file DeveelDbParameter.cs.

override bool Deveel.Data.Client.DeveelDbParameter.IsNullable
getset

Definition at line 115 of file DeveelDbParameter.cs.

string Deveel.Data.Client.DeveelDbParameter.Locale
getset

Definition at line 143 of file DeveelDbParameter.cs.

override string Deveel.Data.Client.DeveelDbParameter.ParameterName
getset

Definition at line 117 of file DeveelDbParameter.cs.

byte IDbDataParameter. Deveel.Data.Client.DeveelDbParameter.Precision
getsetprivate

Definition at line 129 of file DeveelDbParameter.cs.

byte Deveel.Data.Client.DeveelDbParameter.Precision
getset

Definition at line 139 of file DeveelDbParameter.cs.

byte IDbDataParameter. Deveel.Data.Client.DeveelDbParameter.Scale
getsetprivate

Definition at line 134 of file DeveelDbParameter.cs.

byte Deveel.Data.Client.DeveelDbParameter.Scale
getset

Definition at line 141 of file DeveelDbParameter.cs.

override int Deveel.Data.Client.DeveelDbParameter.Size
getset

Definition at line 127 of file DeveelDbParameter.cs.

override string Deveel.Data.Client.DeveelDbParameter.SourceColumn
getset

Definition at line 119 of file DeveelDbParameter.cs.

override bool Deveel.Data.Client.DeveelDbParameter.SourceColumnNullMapping
getset

Definition at line 125 of file DeveelDbParameter.cs.

override DataRowVersion Deveel.Data.Client.DeveelDbParameter.SourceVersion
getset

Definition at line 121 of file DeveelDbParameter.cs.

SqlTypeCode Deveel.Data.Client.DeveelDbParameter.SqlType
getset

Definition at line 105 of file DeveelDbParameter.cs.

override object Deveel.Data.Client.DeveelDbParameter.Value
getset

Definition at line 123 of file DeveelDbParameter.cs.


The documentation for this class was generated from the following file: