chuang4630
asked on
How do I properly code the sizeof DbType.Date?
I use Enterprise Library to access the data store (SQL Server).
It is necessary to give the size of the data type in this method. How do I code it properly?
db.AddOutParameter(command , "@CreationDate", DbType.Date, sizeof(DbType.Date));
Compile error: System.Data.DbType.Date is a 'field' but is used like a 'type'.
What should I do?
It is necessary to give the size of the data type in this method. How do I code it properly?
db.AddOutParameter(command
Compile error: System.Data.DbType.Date is a 'field' but is used like a 'type'.
What should I do?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just to close it.
ASKER
No overload for method 'AddOutParameter' takes 3 parameters