Megosztás a következőn keresztül:


TmdlSerializer.DeserializeDatabaseFromFolder Method

Definition

Overloads

DeserializeDatabaseFromFolder(String)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Deserializes the set of TMDL documents in the specified folder to its database object equivalent.

DeserializeDatabaseFromFolder(String, MetadataDeserializationOptions)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Deserializes the set of TMDL documents in the specified folder to its database object equivalent.

DeserializeDatabaseFromFolder(String)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Deserializes the set of TMDL documents in the specified folder to its database object equivalent.

public static Microsoft.AnalysisServices.Tabular.Database DeserializeDatabaseFromFolder (string path);
static member DeserializeDatabaseFromFolder : string -> Microsoft.AnalysisServices.Tabular.Database
Public Shared Function DeserializeDatabaseFromFolder (path As String) As Database

Parameters

path
String

The path of the folder in which the model documents exist.

Returns

The Database instance that was created based on the TMDL documents.

Exceptions

The specified path is a null reference (Nothing in Visual Basic) or empty.

The specified path does not exist.

The content in the folder contains TMDL text in an invalid format.

The content in the folder contains TMDL text is in valid format, but contains invalid metadata.

Remarks

If the folder does not contain the properties of the database in any of the documents, the returned database will have default properties.

Applies to

DeserializeDatabaseFromFolder(String, MetadataDeserializationOptions)

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Deserializes the set of TMDL documents in the specified folder to its database object equivalent.

public static Microsoft.AnalysisServices.Tabular.Database DeserializeDatabaseFromFolder (string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options);
static member DeserializeDatabaseFromFolder : string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions -> Microsoft.AnalysisServices.Tabular.Database
Public Shared Function DeserializeDatabaseFromFolder (path As String, options As MetadataDeserializationOptions) As Database

Parameters

path
String

The path of the folder in which the model documents exist.

options
MetadataDeserializationOptions

The options for the deserialization action.

Returns

The Database instance that was created based on the TMDL documents.

Exceptions

  • The specified path is a null reference (Nothing in Visual Basic) or empty.
  • The specified options instance is a null reference (Nothing in Visual Basic).

The specified path does not exist.

The content in the folder contains TMDL text in an invalid format.

The content in the folder contains TMDL text is in valid format, but contains invalid metadata.

Remarks

If the folder does not contain the properties of the database in any of the documents, the returned database will have default properties.

Applies to