Trabalhando com conjuntos de dados em aplicativos de n camadas
N-tier data applications are data-centric applications that are separated into multiple logical layers (or tiers). In other words, an n-tier data application is an application that is separated into multiple projects, with the data access tier, the business logic tier, and the presentation tier each in its own project. Para obter mais informações, consulte Visão geral de aplicativos de dados N-Tier..
Typed datasets have been enhanced so that the TableAdapters and dataset classes can be generated into discrete projects. This provides the ability to quickly separate application layers and generate n-tier data applications.
N-tier support in typed datasets enables iterative development of the application architecture to an n-tier design and removes the requirement to manually separate the code into more than one project. Start out designing the data layer by using the Dataset Designer. When you are ready to take the application architecture to an n-tiered design, set the DataSet Project property of a dataset to generate the dataset class into a separate project.
Nesta seção
Como: Separar o Datasets e TableAdapters em diferentes projetos
Describes how to move the generated dataset class out of the project that contains the generated TableAdapter classes and into a new project.Como: Adicione o código a TableAdapters em aplicativos de n camadas
Describes how to generate a partial class in which code can be added for an n-tier TableAdapter.Como: Adicione código para conjuntos de dados em aplicativos de n camadas
Describes how to generate a partial class in which code can be added for an n-tier dataset.Como: Adicionar validação para um Dataset de n camadas
Describes where to add code to perform validation on changing data.Demonstra Passo a passo: Criando um aplicativo de dados N-Tier.
Provides step-by-step instructions for creating a typed dataset and separating the TableAdapter and dataset code into multiple projects.Demonstra Passo a passo: Adicionando validação a um aplicativo de dados N-Tier.
Provides step-by-step instructions for adding validation to the application created in the n-tier data application walkthrough.Demonstra Passo a passo: Adicionando um Cache Local do banco de dados a um aplicativo de n camadas
Provides step-by-step instructions for incorporating Microsoft Synchronization Services for ADO.NET into the application created in the n-tier data application walkthrough.
Referência
Seções relacionadas
Visão geral de aplicativos de dados N-Tier.
Trabalhando com conjuntos de dados Visual Studio
Acesso a dados em Visual Studio
Aplicativos ocasionalmente conectados (cache de banco de dados Local)