Hi,
I'm using LLBLGenPro designer v 3.0 Final (August 5th, 2010)
Template group: self servicing
Target Framework: LLBLGen Pro Runtime Framework
Target Language: C#
Target platform: .Net 4.0
I was faced with a problem I could reproduce in a small sample you can find attached.
There is a VS2010 WPF Project and the llblgen designer project.
Before running the project, you have to change the connection string in the TestApp project settings to point it to the mdb file path.
I use an MS Access "mdb" (2003) database with just one table.
I have a nullable currency field named "Price", that translates correctly to a nullable decimal in the generated code for the entity (named TestTableEntity).
I can then read the value correctly when accessing the "Price" property of the entity.
However, if I try to set this value with a decimal, the value gets truncated to an int.
This is not a WPF binding issue since it happens when you try to set it programmatically too.
If you trace the code, you will see that the value is still OK when it gets to the property setter for "Price" in TestTableEntity. Then that setter calls SetValue (which I can't trace because i don't have the source) and the value gets truncated.
Best regards.
Manuel Ornato - Multimedia Press