Closed Bitfiddler closed 8 years ago
Using other ORMs I have used as a basis for a stab in the dark, I found that a byte array works as a mapping for timestamp. So:
public byte[] RowVersion {get;set;}
Seems to work fine. Might be handy to add this to the main page of examples.
You're right. To quote from MSDN
A nonnullable rowversion column is semantically equivalent to a binary(8) column.
I'll keep this in mind for the docs, right now I'm working to release SqlFu v3.
Btw, what's with the version number in the title? Did you mean 2.3.5?
Updated the version in the title, must have inadvertently had another nuget package selected while I was looking at the version number ;-)
In previous versions of SqlFu, a timestamp datatype from SqlServer mapped onto a Datetime in c#. This appears to no longer be the case but I cannot find any docs on what the new mapping is. In the code below, if I comment out the RowVersion the unit test passes, if I uncomment it I get a cast exception.
Here is my unit test: `
`
Here is my Domain object: `
`