How many typed datasets should I have?  
Author Message
artificer





PostPosted: .NET Framework Data Access and Storage, How many typed datasets should I have? Top

I am creating an application that will have around 20 web forms. Should I create only one strongly typed dataset that includes all the DataTables required for all the forms or should I create one strongly typed dataset per web form that includes only the DataTables required by that specific form



.NET Development34  
 
 
Luis D. Rojas





PostPosted: .NET Framework Data Access and Storage, How many typed datasets should I have? Top

Hi,

You should have you Typed DataSets as bussines entities, that means that you bussines logic should comunicate with your UI - in this case web forms - using Typed DataSets. This Dataset represent pieces of your bussines that usually are part of your back end. For example, you can have a typed DataSet for Customers, a Typed DataSet for Orders, a Typed DataSet for OrderDetails, and so on.

Those Typed DataSet should be placed in a separated component that you can call bussinesEntities. So you can use any if these TypedDataSet just adding a reference for that DLL. they can be used at the UI level, bussines logic level or DataAccess layer level.

You can check this link for more information.

Best Regards.