codesmithtools / Templates

CodeSmith Generator Templates
http://www.codesmithtools.com/product/generator
54 stars 35 forks source link

AuditEntity doesn't store Original data in changed Properties if it is System.Data.Linq.Binary #682

Closed GoogleCodeExporter closed 4 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update a record with several columns, one of them needs to be an (SQL DB 
type) image, which gets stored as System.Data.Linq.Binary.
2. Check the CodeSmith.Data.Audit.AuditEntity of the saved record

I changed the content of a string field and the content of the Image field.

- What is the expected output?

If I check the CodeSmith.Data.Audit.AuditEntity.Current Entity I can see the 
changed string and also the changed Image.
If I check the CodeSmith.Data.Audit.AuditEntity.Original Entity I can see the 
original string and also the original Image.

If I check the changed Properties 
(CodeSmith.Data.Audit.AuditEntity.Properties), I can see the current and the 
original string.

This is correct.

- What do you see instead?

If I check the changed Properties 
(CodeSmith.Data.Audit.AuditEntity.Properties), for the image I can only see the 
current Image, but the original Image is Nothing.
But the CodeSmith.Data.Audit.AuditEntity.Original Entity shows that the Image 
is not Nothing

What version of the product are you using?
Latest - plinqo-r2950
Codesmith 6.5.2 R 14758

Original issue reported on code.google.com by Athur...@GMX.de on 6 Mar 2013 at 1:40

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 6 Mar 2013 at 10:00

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.