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.

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Dac.Model 命名空间