Re: Business Object reference/dicussion

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Re: Passing Business Objects through nTier Web App
    ... I use strongly-typed datasets as my business objects. ... > a project that only contains the strongly-typed datasets, and both the BLL ... > project and the DAL project can then reference the datasets project. ... >> Business Logic Layer and User Interface Layer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Add Web Service advice
    ... We have an SOA application that includes an ASP.NET webservice and WinForms ... My question is regarding the use of Add Web Reference in Visual ... business objects for use with the webservice methods. ... available to the client application, so we'd like to continue to reference ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: database drive code generated software architecture
    ... While I map db to business objects to populate data I *also* ... My opinions are not written in stone but my opinions are mine. ... between the business layer and data layer I have found that generating ...
    (comp.object)
  • Re: database drive code generated software architecture
    ... While I map db to business objects to populate data I *also* ... between the business layer and data layer I have found that generating ... I have investigated a number of ORM tools. ...
    (comp.object)
  • Re: database drive code generated software architecture
    ... between the business layer and data layer I have found that generating ... business objects which directly map to database tables works for me. ... I have investigated a number of ORM tools. ...
    (comp.object)