AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 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