G
Guest
Hi newsgroup,
I'm new to ADO.NET. I want to use strongly typed datasets, to reflect my
business objects from the database. I have e.g. an object "user" with the
properties name, telno, login, password, etc. I'm able to access all these
properties in the code. But now I want to add business logic to the objects.
E.g. a function "generateRSAKeyPair". What is the usual way to implement
business logic? Should I derive the dataset class and add the functionality
in there? Or should I write something like a wrapper class around the dataset
where the business logic is implemented?
And how do I handle relations between objects depending on the way for
implementing the business logic. I would need to write my own collection
classes which cater for data integrity upon chances.
Thanks in advance
Patrick
I'm new to ADO.NET. I want to use strongly typed datasets, to reflect my
business objects from the database. I have e.g. an object "user" with the
properties name, telno, login, password, etc. I'm able to access all these
properties in the code. But now I want to add business logic to the objects.
E.g. a function "generateRSAKeyPair". What is the usual way to implement
business logic? Should I derive the dataset class and add the functionality
in there? Or should I write something like a wrapper class around the dataset
where the business logic is implemented?
And how do I handle relations between objects depending on the way for
implementing the business logic. I would need to write my own collection
classes which cater for data integrity upon chances.
Thanks in advance
Patrick