DbTypes

Topics: Data Access Application Block
Jul 21, 2011 at 6:12 AM

Hi,

what i can use as DBtype for SqlDbType.VarBinary ? I dont find VarBinary in DBType, and when i am trying to cast sqldbtype.varbinary to dbtype getting exception as "No mapping exists from DbType VarNumeric to a known SqlDbType ". Please help me on this as this is very urgent.

 

Thanks,

Bhargavi P

Jul 21, 2011 at 7:22 AM
Edited Jul 21, 2011 at 7:34 AM

Hi,

DbType.Binary is the equivalent of SqlDbType.VarBinary on DbType. You would notice on their description that they both have variable lengths.

DbTypes

 

Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
Contact Us