LINQ and DbTypeAttibute

31 views
Skip to first unread message

zif...@gmail.com

unread,
Dec 26, 2012, 10:27:20 PM12/26/12
to blto...@googlegroups.com
Hello there!
I use BLToolKit for accessing to my DB2 iSeries Database (i had to tweak some classes to get working DB2Provider via ODBC driver) and have a little problem with some LINQ queries.
When I create a query via LINQ with expressions i get a sql error code "A buffer passed to a system call is too small to hold return data" (but, it's another story), but when i use a common DbManager.SetCommand func and manually add parameters with their DbType and Size - everything is ok.
So, my question is how can i set a DbType for each property of my class for using a LINQ with expressions? I know that BLToolKit has a DbTypeAttibute but it doesn't work for this purpose.
Reply all
Reply to author
Forward
0 new messages