Класс TSqlObject

Represents an instance of an object for a SQL Server database schema.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Dac.Model.TSqlObject

Пространство имен:  Microsoft.SqlServer.Dac.Model
Сборка:  Microsoft.SqlServer.Dac.Extensions (в Microsoft.SqlServer.Dac.Extensions.dll)

Синтаксис

'Декларация
Public NotInheritable Class TSqlObject
'Применение
Dim instance As TSqlObject
public sealed class TSqlObject
public ref class TSqlObject sealed
[<SealedAttribute>]
type TSqlObject =  class end
public final class TSqlObject

Тип TSqlObject обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство Item Gets the property value.
Открытое свойство Name Gets the identity of the object.
Открытое свойство ObjectType Gets the model type of the object.

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Открытый метод GetAst Generates the AST for the TSqlObject.
Открытый метод GetChildren() Returns all TSqlObject child objects within the Default scope.
Открытый метод GetChildren(DacQueryScopes) Returns all TSqlObject child objects within the specified DacQueryScopes scope.
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetMetadata(ModelMetadataClass) Returns the metadata property value.
Открытый метод GetMetadata<T>(ModelMetadataClass) Returns the metadata property value.
Открытый метод GetParent() Returns the parent TSqlObject, if it is within the Default scope and if there is only one TSqlObject that could be the parent for this object.
Открытый метод GetParent(DacQueryScopes) Returns the parent TSqlObject, if it is within the specified DacQueryScopes scope and if there is only one TSqlObject that could be the parent for this object.
Открытый метод GetProperty(ModelPropertyClass) Returns the property value.
Открытый метод GetProperty<T>(ModelPropertyClass) Returns the property value.
Открытый метод GetReferenced() Gets all referenced objects within the Default scope.
Открытый метод GetReferenced(DacQueryScopes) Gets all referenced objects within a given DacQueryScopes scope.
Открытый метод GetReferenced(ModelRelationshipClass) Gets referenced objects for a given ModelRelationshipClass, where objects are within the Default scope.
Открытый метод GetReferenced(ModelRelationshipClass, DacQueryScopes) Gets referenced objects for a given ModelRelationshipClass, where objects are within a given DacQueryScopes scope.
Открытый метод GetReferencedRelationshipInstances() For each object referenced by this TSqlObject, returns the ModelRelationshipInstance defining the relationship data. This will include the referenced object if it exists, the ObjectIdentifier used to identify the referenced object, and any properties specific to this relationship. Only objects within the Default scope will be returned.
Открытый метод GetReferencedRelationshipInstances(DacExternalQueryScopes) For each object referenced by this TSqlObject, returns the ModelRelationshipInstance defining the relationship data. This will include the referenced object if it exists, the ObjectIdentifier used to identify the referenced object, and any properties specific to this relationship. Only objects within the specified DacQueryScopes scope will be returned. To return non-composite or system references the scope must be set to include externals. In addition, in this case only the ObjectIdentifier of the referenced object will be returned.
Открытый метод GetReferencedRelationshipInstances(DacQueryScopes) For each object referenced by this TSqlObject, returns the ModelRelationshipInstance defining the relationship data. This will include the referenced object if it exists, the ObjectIdentifier used to identify the referenced object, and any properties specific to this relationship. Only objects within the specified DacQueryScopes scope will be returned. To return non-composite or system references the GetReferencedRelationshipInstances(DacExternalQueryScopes) method should be called instead.
Открытый метод GetReferencedRelationshipInstances(ModelRelationshipClass) For objects referenced by this TSqlObject with a specific ModelRelationshipClass, returns the ModelRelationshipInstance defining the relationship data. This will include the referenced object if it exists, the ObjectIdentifier used to identify the referenced object, and any properties specific to this relationship. Only objects within the Default scope will be returned.
Открытый метод GetReferencedRelationshipInstances(ModelRelationshipClass, DacExternalQueryScopes) For objects referenced by this TSqlObject with a specific ModelRelationshipClass, returns the ModelRelationshipInstance defining the relationship data. This will include the referenced object if it exists, the ObjectIdentifier used to identify the referenced object, and any properties specific to this relationship. Only objects within the specified DacExternalQueryScopes scope will be returned. To return non-composite or system references the scope must be set to include externals. In addition, in this case only the ObjectIdentifier of the referenced object will be returned.
Открытый метод GetReferencedRelationshipInstances(ModelRelationshipClass, DacQueryScopes) For objects referenced by this TSqlObject with a specific ModelRelationshipClass, returns the ModelRelationshipInstance defining the relationship data. This will include the referenced object if it exists, the ObjectIdentifier used to identify the referenced object, and any properties specific to this relationship. Only objects within the specified DacQueryScopes scope will be returned. To return non-composite or system references the GetReferencedRelationshipInstances(DacExternalQueryScopes) method should be called instead.
Открытый метод GetReferencing() Gets all referencing objects within the Default scope.
Открытый метод GetReferencing(DacQueryScopes) Gets all referencing objects within a given DacQueryScopes scope.
Открытый метод GetReferencing(ModelRelationshipClass) Gets referencing objects, where the relationship is defined by a specific ModelRelationshipClass and where objects are within the Default scope.
Открытый метод GetReferencing(ModelRelationshipClass, DacQueryScopes) Gets referencing objects, where the relationship is defined by a specific ModelRelationshipClass and where objects are within a given DacQueryScopes scope.
Открытый метод GetReferencingRelationshipInstances() For each object referencing this TSqlObject, returns the ModelRelationshipInstance defining the relationship data. This will include the referencing object - definedby the FromObject field, and any properties specific to this relationship. Only objects within the specified DacQueryScopes scope will be returned.
Открытый метод GetReferencingRelationshipInstances(DacQueryScopes) For each object referencing this TSqlObject, returns the ModelRelationshipInstance defining the relationship data. This will include the referencing object - definedby the FromObject field, and any properties specific to this relationship. Only objects within the Default scope will be returned.
Открытый метод GetReferencingRelationshipInstances(ModelRelationshipClass) For each object referencing this TSqlObject with a specific ModelRelationshipClass, returns the ModelRelationshipInstance defining the relationship data. This will include the referencing object - definedby the FromObject field, and any properties specific to this relationship. Only objects within the Default scope will be returned.
Открытый метод GetReferencingRelationshipInstances(ModelRelationshipClass, DacQueryScopes) For each object referencing this TSqlObject with a specific ModelRelationshipClass, returns the ModelRelationshipInstance defining the relationship data. This will include the referencing object - definedby the FromObject field, and any properties specific to this relationship. Only objects within the specified DacQueryScopes scope will be returned.
Открытый метод GetScript Generates a CREATE script from the objects AST.
Открытый метод GetType (Производный от Object.)
Открытый метод ToString (Производный от Object.)
Открытый метод TryGetAst Attempts to generate an AST for the object.
Открытый метод TryGetScript Attempts to generate a script from the object’s AST.

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Dac.Model