Wiki Link: [discussion:2648]
Materialization and casting 

Dec 1 2009 at 4:36 AM
I'm materializing a SQL database table to a class. The SQL database table has a field with a datatype of decimal. The class has a corresponding property with C# decimal type. I'm getting "System.InvalidCastException: Specified cast is not valid" error message. I know it's bombing on this one particular field because if I exclude it from the view that's used to materialize the class, then everything works. Are decimal data types not supported for materialization?

Jan 21 2010 at 7:10 PM
decimal works fine with me.

try to check and use decimal? maybe


Updating...
Page view tracker