jedistar
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
It contains a dragged table from "Server Explorer" -> User table with attributes like userid,username,email,age,
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.