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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -