Represents a model of a SQL Server database schema.
繼承階層
System.Object
Microsoft.SqlServer.Dac.Model.TSqlModel
命名空間: Microsoft.SqlServer.Dac.Model
組件: Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)
語法
'宣告
Public NotInheritable Class TSqlModel _
Implements IDisposable
'用途
Dim instance As TSqlModel
public sealed class TSqlModel : IDisposable
public ref class TSqlModel sealed : IDisposable
[<SealedAttribute>]
type TSqlModel =
class
interface IDisposable
end
public final class TSqlModel implements IDisposable
TSqlModel 型別公開下列成員。
建構函式
| 名稱 | 說明 | |
|---|---|---|
![]() |
TSqlModel(String) | Initializes a new instance of the TSqlModel class. |
![]() |
TSqlModel(String, DacSchemaModelStorageType) | Initializes a new instance of the TSqlModel class. |
![]() |
TSqlModel(SqlServerVersion, TSqlModelOptions) | Initializes a new instance of the TSqlModel class. |
上層
屬性
| 名稱 | 說明 | |
|---|---|---|
![]() |
Version | Gets the specific SQL Server release targeted by the model. |
上層
方法
| 名稱 | 說明 | |
|---|---|---|
![]() |
AddObjects(TSqlScript) | Adds objects to the model based on the contents of a TSqlScript object. The script should be valid TSql with no parse errors. |
![]() |
AddObjects(String) | Adds objects to the model based on the contents of a TSql Script string. The script should consist of valid TSql DDL statements. |
![]() |
AddObjects(TSqlScript, TSqlObjectOptions) | Add Objects to the model based on the contents of a TSqlScript object, plus additional metadata defined by a TSqlObjectOptions object The script should be valid TSql with no parse errors. |
![]() |
AddObjects(String, TSqlObjectOptions) | Adds Objects to the model based on the contents of a TSql Script string, plus additional metadata defined by a TSqlObjectOptions object The script should consist of valid TSql DDL statements. |
![]() |
Dispose | Releases all resources used by the TSqlModel object. |
![]() |
Equals | (繼承自 Object。) |
![]() |
GetHashCode | (繼承自 Object。) |
![]() |
GetObject | Returns TSqlObjects of the specified objectType and id. Only top level ModelTypeClass types are supported by this method - the objectType parameter must be in the types returned from the TopLevelTypes method or the call will fail. |
![]() |
GetObjects(DacQueryScopes, array<ModelTypeClass[]) | Returns all TSqlObject matching the list of typeFilters. Only top level ModelTypeClass types are supported by this method - all types in the typeFilters parameter must be present in the TopLevelTypes or the call will fail. |
![]() |
GetObjects(ModelTypeClass, ObjectIdentifier, DacQueryScopes) | Returns all TSqlObject that match the ModelTypeClass and ObjectIdentifier. Only top level ModelTypeClass types are supported by this method - the objectType parameter must be in the types returned from the TopLevelTypes method or the call will fail. |
![]() |
GetType | (繼承自 Object。) |
![]() |
ToString | (繼承自 Object。) |
![]() |
Validate | Validates the model and returns a list of messages with any errors/warnings. |
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
.gif)
.gif)