Declare TimeStamp in dbml
-
I have an Sp which takes a userdefinedtabletype as one of the parameter,and now i need to call this Sp from my c# code. I created a dbml file and i created a class which simulates my userdefinedtabletype in DB. Now the issue is there is a column named **version** which of type TMESTAMP is present in the Udtt in SP And the structure of udtt in DB is as follows. CREATE TYPE dbo.sampletype as ID INT NULL, Name String NULL, Version TIMESTAMP So when i created a class i created VERSION column as below.. global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Version", DbType="rowversion NOT NULL")] public System.Data.Linq.Binary Version { get { return this._Version; } set { if ((this._Version != value)) { this._Version = value; } } } Now when i call SP using classic ADO.net(using cmdparameters,SqlExecuteReader) im getting the below error.. The type of column 'Version' is not supported. The type is 'Binary' Please help me regarding the same.