Business Object Mapper


Author
Message
PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
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!

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
(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.

Attachments
StrataFrame.zip (81 views, 2.00 MB)
PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
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.

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Glad to hear it Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search