V
Versteijn
Hello all
I am working on a large enterprise webapplication using VB.NET with an
SQL Server 2000 database. There will be a lot of business logic and
there currently are a lot of tables and data.
For what I have read, strongly typed datasets are the way to go in
this situation, since lots of my data needs to be bound to data aware
controls and that guarantees the simplest/safest way around the
concurreny problems I will be in.
Now, how do I go from there? Should I create a stronly typed dataset
for every table in the database? Or first create logical groups of
data, in the way they will be used in my domain, using views?
In the second case, how are relations kept by the datasets/classes? In
a 1:n situation, does the 1 side contain a collection of objects of
the n side? Or how is this done?
Or should I entirely wrap the generated strongly typed datasets with a
separate business logic layer? I read about it, but find that strange
because the data (which it's all about here) is hidden and can no
longer be bound easy to a datagrid for example. Also, there is room in
the generated strongly typed datasets to contain business logic. But I
guess that's only useful when the classes are not directly based on
the databasestructure (1 class for every table).
Any advise would be very appreciated.
Thank you in advance
Freek Versteijn
I am working on a large enterprise webapplication using VB.NET with an
SQL Server 2000 database. There will be a lot of business logic and
there currently are a lot of tables and data.
For what I have read, strongly typed datasets are the way to go in
this situation, since lots of my data needs to be bound to data aware
controls and that guarantees the simplest/safest way around the
concurreny problems I will be in.
Now, how do I go from there? Should I create a stronly typed dataset
for every table in the database? Or first create logical groups of
data, in the way they will be used in my domain, using views?
In the second case, how are relations kept by the datasets/classes? In
a 1:n situation, does the 1 side contain a collection of objects of
the n side? Or how is this done?
Or should I entirely wrap the generated strongly typed datasets with a
separate business logic layer? I read about it, but find that strange
because the data (which it's all about here) is hidden and can no
longer be bound easy to a datagrid for example. Also, there is room in
the generated strongly typed datasets to contain business logic. But I
guess that's only useful when the classes are not directly based on
the databasestructure (1 class for every table).
Any advise would be very appreciated.
Thank you in advance
Freek Versteijn