C
Chris Zopers
Hello,
I would like to know what's the best way to implement a business logic
layer between my user interface and my database.
I would say I'd make a dll-project for the business logic layer and make
classes that represent objects/tables. For example, if I have a table
named 'tblPersons' I would make a class named 'clsPersons' and a class
'clsPerson' that represents one person/record. In class 'clsPersons' I
can make some business logic like 'get all persons living in a certain
city'.
What's the best way to display business logic in a Visual Basic.NET or
ASP.NET user interface? Should I use datasets (so my business logic
layer returns a dataset instead of a class object) or should I use the
class objects? If so, whats the best way to display these class objects?
For example, say I've developed a windows form to display a persons
data. From my business logic dll I've received an object of the type
clsPerson. I can't use databindings on a class object, can I?
Hope some can tell me more about this!
Greetings,
Chris
I would like to know what's the best way to implement a business logic
layer between my user interface and my database.
I would say I'd make a dll-project for the business logic layer and make
classes that represent objects/tables. For example, if I have a table
named 'tblPersons' I would make a class named 'clsPersons' and a class
'clsPerson' that represents one person/record. In class 'clsPersons' I
can make some business logic like 'get all persons living in a certain
city'.
What's the best way to display business logic in a Visual Basic.NET or
ASP.NET user interface? Should I use datasets (so my business logic
layer returns a dataset instead of a class object) or should I use the
class objects? If so, whats the best way to display these class objects?
For example, say I've developed a windows form to display a persons
data. From my business logic dll I've received an object of the type
clsPerson. I can't use databindings on a class object, can I?
Hope some can tell me more about this!
Greetings,
Chris