Re: Business Object reference/dicussion
- From: Michael Nemtsev <nemtsev@xxxxxxx>
- Date: Tue, 7 Mar 2006 21:52:38 +0000 (UTC)
Hello Larry,
LC> I seem to have a lot of questions revolving around Business Objects
LC> and their implementation. Does anyone have any good reference
LC> links?
LC> LC> Some of the questions I have are:
LC> How do you represent the dichotomy between undefined data and
LC> defined data?
LC> Do I create a special class for every possible property type?
Create canonical class that will map all undefined to defined, for example using XSLT
LC> How/where and when do you translate between internal representation
LC> (say date) and user interface representation (say MM/dd/yyyy, or
LC> three separate values, maybe binding to a combo box) and storage
LC> (which probabbly want's a date or NULL)
in the class where u need to show your control
LC> If UI and database are my primary uses of the business object,
LC> should I define all properties as string?
Well........properties of what? seems not, there are several cases where it may be numeric data, but
u can declare everything as string and then perform convert
LC> If you have an object that contains an item that references an entry
LC> in another list (say a lookup/validation list). How do you map
LC> between usage modes (for instance storage and editing might want the
LC> value 1, display might want the value Sunday). Again would I create
LC> a class for every defined property type?
use enums, where u can map Sunday to 1 and vice versa
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche
.
- Prev by Date: Re: How to add IPs
- Next by Date: Re: Windows Service Password change ?
- Previous by thread: Re: MS Word Add-In
- Next by thread: Shorthand conditional doesn't evaluate right
- Index(es):
Relevant Pages
|