CloudTableClient.CreateTablesFromModel Method

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Creates tables from a data model defined in code.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim serviceContextType As Type
Dim baseAddress As String
Dim credentials As StorageCredentials

CloudTableClient.CreateTablesFromModel(serviceContextType, baseAddress, credentials)

Syntax

Visual Basic
Public Shared Sub CreateTablesFromModel ( _
	serviceContextType As Type, _
	baseAddress As String, _
	credentials As StorageCredentials _
)
C#
public static void CreateTablesFromModel (
	Type serviceContextType,
	string baseAddress,
	StorageCredentials credentials
)
C++
public:
static void CreateTablesFromModel (
	Type^ serviceContextType, 
	String^ baseAddress, 
	StorageCredentials^ credentials
)
J#
JScript

Parameters

serviceContextType

Type: System.Type

The type of service context.

baseAddress

Type: System.String

The Table service endpoint to use to create the client.

credentials

Type: Microsoft.WindowsAzure.StorageCredentials

The account credentials.

Remarks

It's now recommended that you use the CreateTable or CreateTableIfNotExist method to create a table, rather than CreateTablesFromModel. It is not necessary to create a custom class that is derived from TableServiceContext in order to work with Table service data.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also