This documentation is archived and is not being maintained.

ModelStore.CreateIdentifier Method (String[])

Visual Studio 2010

Creates a unique model identifier by using the provided array of part names.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

public ModelIdentifier CreateIdentifier(
	params string[] parts
)

Parameters

parts
Type: System.String[]
An array of part names.

Return Value

Type: Microsoft.Data.Schema.SchemaModel.ModelIdentifier
A unique identifier. If an identifier with the same parts already exists, that identifier is returned.

An element named "dbo.MyTable" would be represented by a name parts array with "dbo" and "MyTable".

Show: