c# - DbExtensions - WHERE parameter with byte[] value (timestamp) -


i using code

updatebuilder     .update("mytable")     .set("updateddate = {0}", updated.updateddate)     .set("updatedbyuserid = {0}", updated.updatedbyuserid)     .where("id = {0}", updated.id)     .where("rowversion = {0}", updated.rowversion); 

and sql generates this

exec sp_executesql n'update mytable set updateddate = @p0, updatedbyuserid = @p1 id = @p2 , rowversion = @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10 

i guessing adding value each element in byte array, property rowversion = byte[], how fix this?

in entity framework byte[] added in sql this

@3=0x0000000000560f94 

how can byte array this?

this known issue, answer here.


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -