This documentation is archived and is not being maintained.

TypedDataSetGenerator.Generate Method (DataSet, CodeNamespace, CodeDomProvider)

Generates a strongly typed DataSet based on an existing DataSet.

Namespace:  System.Data.Design
Assembly:  System.Design (in System.Design.dll)

public static string Generate(
	DataSet dataSet,
	CodeNamespace codeNamespace,
	CodeDomProvider codeProvider


Type: System.Data.DataSet

The source DataSet that specifies the metadata for the typed DataSet.

Type: System.CodeDom.CodeNamespace

The namespace that provides the target namespace for the typed DataSet.

Type: System.CodeDom.Compiler.CodeDomProvider

The language-specific CodeDomProvider to use to generate the dataset.

Return Value

Type: System.String
A strongly typed DataSet.

Generates a strongly typed DataSet. The dataset is created in the namespace indicated in the codeNamespace parameter, and the dataset is generated in the managed programming language indicated in the codeProvider parameter.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0