StrataFrame Forum

Business Object Mapper

http://forum.strataframe.net/Topic11197.aspx

By PeterA - 8/29/2007

From a business object designer file:





_FieldNativeDbTypes.Add("ID_SPP", IBM.Data.DB2.DB2Type);

_FieldNativeDbTypes.Add("NM_SPP", IBM.Data.DB2.DB2Type);

_FieldNativeDbTypes.Add("ID_OWN_TYP", IBM.Data.DB2.DB2Type);





It's not fully qualifying the DB2 data type. Each time I generate a new business object, I have to change it to the fully qualified type (i.e. IBM.Data.DB2.DB2Type.Integer) and cast it to the correct type.



[codesnippet]

_FieldNativeDbTypes.Add("ID_SPP", (int)IBM.Data.DB2.DB2Type.Integer);

[/codesnipppet]



Any suggestions on a property I could change so that it puts the correct data into the auto-generated file (changing each line in each business object each time I rebuild the partial classes isn't going to cut it)?



Thanks!
By StrataFrame Team - 8/29/2007

(changing each line in each business object each time I rebuild the partial classes isn't going to cut it)

Hehe, I would think not Smile  Unless you just love typing the same thing over and over again...

Yeah, it's supposed to .ToString() the actual value, but for some reason, in the C# generator, it was .ToString()'ing the actual System.Type for it.  Not sure why, but here's the fix for you.

By PeterA - 8/29/2007

Ben Chase (08/29/2007)
(changing each line in each business object each time I rebuild the partial classes isn't going to cut it)




Hehe, I would think not Smile Unless you just love typing the same thing over and over again...



Yeah, it's supposed to .ToString() the actual value, but for some reason, in the C# generator, it was .ToString()'ing the actual System.Type for it. Not sure why, but here's the fix for you.




Thanks Ben! That took care of the problem I was having.
By StrataFrame Team - 8/30/2007

Glad to hear it Smile