Custom Business Object creation and usage (with iBatis posssible)?

Hi,

I am new to iBatis.Net (and n-tier architecture in general) but would like to try, pls correct me if my understanding is wrong. Just wonder:

1. Since iBatis is an sql mapper, is it I still have to write the business objects myself? If I have 50 tables in my app (assume each BO mapped to each table) and each table has about 70 fields, then I have to write all the classes and properties myself?

2. How the business object classes should be look like? If let say the business objects is used throughout my application, how to have things like deleted/original value, sorting, field max length, etc..? How will it work when bound to a datagrid?

Thanks.

[796 byte] By [chawacho] at [2007-12-24]
# 1

This might not be related to iBatis but ...Anyone can share the experience in creating the custom business object? How do you normally create an object with many fields (properties)? Using code generators? Or should I consider the typed dataset?

Please help. Thanks.

chawacho at 2007-10-8 > top of Msdn Tech,Architecture,Architecture General...
# 2

1. yes

2. This is a rather wide subject, there are a lot of options on how to model your objects... I suggest you take a look at http://www.domaindrivendesign.org/

Arnon

ArnonRotemGalOz at 2007-10-8 > top of Msdn Tech,Architecture,Architecture General...