M
Moe
Hi All,
I have read a lot of articles about datasets, strongly-typed datasets
and customer objects but am still at a loss on which is the best
solution.
We are building a 3-tier application that uses Webservices as our
middle-tier. The Webservices will hold the DataAccess layer
(communicates with the DataSource and returns the requested data).
These services will be used by Windows/Web forms.
Our problem is this
1. What is the best way to return data to pass data between tiers.
a)My first option was to use a dataset but the overhead is a killer
expecially in cases where only one record is required.
b) Option two is to write custom objects, but changes in schema means
a continous change in both the webservice and the client that receives
the data.
Anyway round this?
Are there any tools I can use to generate customer objects using
tables from the datasource and then tweak it?
Example :
A CRM solution with objects
Customer
CustomerNo
FirstName
LastName
Address
Orders
Order
ID
ProductID
Quantity
The customer object is pretty much single instance so a dataset is an
overkill I believe
For Orders will be a collection. So a dataset could do since it will
return multiple records.
I hope this explains my situation. Any help is welcome.
Thanks
Moe
I have read a lot of articles about datasets, strongly-typed datasets
and customer objects but am still at a loss on which is the best
solution.
We are building a 3-tier application that uses Webservices as our
middle-tier. The Webservices will hold the DataAccess layer
(communicates with the DataSource and returns the requested data).
These services will be used by Windows/Web forms.
Our problem is this
1. What is the best way to return data to pass data between tiers.
a)My first option was to use a dataset but the overhead is a killer
expecially in cases where only one record is required.
b) Option two is to write custom objects, but changes in schema means
a continous change in both the webservice and the client that receives
the data.
Anyway round this?
Are there any tools I can use to generate customer objects using
tables from the datasource and then tweak it?
Example :
A CRM solution with objects
Customer
CustomerNo
FirstName
LastName
Address
Orders
Order
ID
ProductID
Quantity
The customer object is pretty much single instance so a dataset is an
overkill I believe
For Orders will be a collection. So a dataset could do since it will
return multiple records.
I hope this explains my situation. Any help is welcome.
Thanks
Moe