Nov 15, 2010 at 6:39 AM
Edited Nov 15, 2010 at 6:55 AM
I guess you are trying to generate an old project. I have the same generated code, well almost.
On declaration I have
Protected _createDate As SmartDate = New SmartDate(True)
and on Fetch I have
_createDate = dr.GetSmartDate("CreateDate", True)
You have GetDateTime while I have GetSmartDate.As I told you, I don't speak VB but VS doesn't report any kind of problem. I have compiled another version using PropertyInfo instead of old style fields (under CslaGenFork respectively Managed and ClassicProperty)
and it compiles just fine.
Anyway the C# generated code is the same and also compiles OK.
On a closer look, you have GetDateTime while I have
GetSmartDate. Please make sure you are using SmartDate (and not DateTime) for PropertyType.