Link to home
Start Free TrialLog in
Avatar of jedistar
jedistarFlag for Singapore

asked on

ASP.NET - Data Tier Question

Say i created a typed dataset--- Users.xsd
It contains a dragged table from "Server Explorer" -> User table with attributes like userid,username,email,age,birthdate etc.

How to use this now to fill data from the database, and pass data to the database, (relationship with Business Logic and Data Access)
(some sample codes u can write would be great)

Is this the correct way to declare it?
- Dim typedDs As DataSet OR Dim typedDs As myCompany.Data.Users ?

When returning it from a function, do i declare the function as
- Public Function obtainDetails(ByVal userid as int) As DataSet OR
- Public Function obtainDetails(ByVal userid as int) As Users

Lastly, i notice i can drag multiple tables into a Users.xsd, when do we need multiple tables in a .xsd typed dataset
ASKER CERTIFIED SOLUTION
Avatar of anv
anv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial