Table of Contents

Class XmlSchema.DataContext

Namespace
LinqToDB.Tools.DataProvider.SqlServer.Schemas
Assembly
linq2db.Tools.dll
public class XmlSchema.DataContext
Inheritance
XmlSchema.DataContext
Extension Methods

Constructors

DataContext(IDataContext)

public DataContext(IDataContext dataContext)

Parameters

dataContext IDataContext

Properties

ColumnXmlSchemaCollectionUsages

sys.column_xml_schema_collection_usages (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row for each column that is validated by an XML schema.


See sys.column_xml_schema_collection_usages.

public ITable<XmlSchema.ColumnXmlSchemaCollectionUsage> ColumnXmlSchemaCollectionUsages { get; }

Property Value

ITable<XmlSchema.ColumnXmlSchemaCollectionUsage>

ParameterXmlSchemaCollectionUsages

sys.parameter_xml_schema_collection_usages (Transact-SQL)

Applies to: √ SQL Server (all supported versions) √ Azure SQL Database

Returns a row for each parameter that is validated by an XML schema.


See sys.parameter_xml_schema_collection_usages.

public ITable<XmlSchema.ParameterXmlSchemaCollectionUsage> ParameterXmlSchemaCollectionUsages { get; }

Property Value

ITable<XmlSchema.ParameterXmlSchemaCollectionUsage>

SelectiveXmlIndexPaths

sys.selective_xml_index_paths (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Available beginning in SQL Server 2012 (11.x) Service Pack 1, each row in sys.selective_xml_index_paths represents one promoted path for particular selective xml index.
If you create a selective xml index on xmlcol of table T using following statement,

CREATE SELECTIVE XML INDEX sxi1 ON T(xmlcol) 
FOR ( path1 = '/a/b/c' AS XQUERY 'xs:string',
    path2 = '/a/b/d' AS XQUERY 'xs:double'
  )

There will be two new rows in sys.selective_xml_index_paths corresponding to the index sxi1.


See sys.selective_xml_index_paths.

public ITable<XmlSchema.SelectiveXmlIndexPath> SelectiveXmlIndexPaths { get; }

Property Value

ITable<XmlSchema.SelectiveXmlIndexPath>

XmlIndexes

sys.xml_indexes (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns one row per XML index.


See sys.xml_indexes.

public ITable<XmlSchema.XmlIndex> XmlIndexes { get; }

Property Value

ITable<XmlSchema.XmlIndex>

XmlSchemaAttributes

sys.xml_schema_attributes (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per XML schema component that is an attribute, symbol_space of A.


See sys.xml_schema_attributes.

public ITable<XmlSchema.XmlSchemaAttribute> XmlSchemaAttributes { get; }

Property Value

ITable<XmlSchema.XmlSchemaAttribute>

XmlSchemaCollections

sys.xml_schema_collections (Transact-SQL)

Applies to: √ SQL Server (all supported versions) √ Azure SQL Database

Returns a row per XML schema collection. An XML schema collection is a named set of XSD definitions. The XML schema collection itself is contained in a relational schema, and it is identified by a schema-scoped Transact\-SQL name. The following tuples are unique: xml_collection_id, and schema_id and name.


See sys.xml_schema_collections.

public ITable<XmlSchema.XmlSchemaCollection> XmlSchemaCollections { get; }

Property Value

ITable<XmlSchema.XmlSchemaCollection>

XmlSchemaComponentPlacements

sys.xml_schema_component_placements (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per placement for XML schema components.


See sys.xml_schema_component_placements.

public ITable<XmlSchema.XmlSchemaComponentPlacement> XmlSchemaComponentPlacements { get; }

Property Value

ITable<XmlSchema.XmlSchemaComponentPlacement>

XmlSchemaComponents

sys.xml_schema_components (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per component of an XML schema. The pair (collection_id, namespace_id) is a compound foreign key to the containing namespace. For named components, the values for symbol_space, name, scoping_xml_component_id, is_qualified, xml_namespace_id, xml_collection_id are unique.


See sys.xml_schema_components.

public ITable<XmlSchema.XmlSchemaComponent> XmlSchemaComponents { get; }

Property Value

ITable<XmlSchema.XmlSchemaComponent>

XmlSchemaElements

sys.xml_schema_elements (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per XML schema component that is a Type, symbol_space of E.


See sys.xml_schema_elements.

public ITable<XmlSchema.XmlSchemaElement> XmlSchemaElements { get; }

Property Value

ITable<XmlSchema.XmlSchemaElement>

XmlSchemaFacets

sys.xml_schema_facets (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per facet (restriction) of an xml-type definition (corresponds to sys.xml_types).


See sys.xml_schema_facets.

public ITable<XmlSchema.XmlSchemaFacet> XmlSchemaFacets { get; }

Property Value

ITable<XmlSchema.XmlSchemaFacet>

XmlSchemaModelGroups

sys.xml_schema_model_groups (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per XML schema component that is a Model-Group, symbol_space of M..


See sys.xml_schema_model_groups.

public ITable<XmlSchema.XmlSchemaModelGroup> XmlSchemaModelGroups { get; }

Property Value

ITable<XmlSchema.XmlSchemaModelGroup>

XmlSchemaNamespaces

sys.xml_schema_namespaces (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per XSD-defined XML namespace. The following tuples are unique: collection_id, namespace_id, and collection_id, and name.


See sys.xml_schema_namespaces.

public ITable<XmlSchema.XmlSchemaNamespace> XmlSchemaNamespaces { get; }

Property Value

ITable<XmlSchema.XmlSchemaNamespace>

XmlSchemaTypes

sys.xml_schema_types (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per XML schema component that is a Type, symbol_space of T.


See sys.xml_schema_types.

public ITable<XmlSchema.XmlSchemaType> XmlSchemaTypes { get; }

Property Value

ITable<XmlSchema.XmlSchemaType>

XmlSchemaWildcardNamespaces

sys.xml_schema_wildcard_namespaces (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per enumerated namespace for an XML schema wildcard.


See sys.xml_schema_wildcard_namespaces.

public ITable<XmlSchema.XmlSchemaWildcardNamespace> XmlSchemaWildcardNamespaces { get; }

Property Value

ITable<XmlSchema.XmlSchemaWildcardNamespace>

XmlSchemaWildcards

sys.xml_schema_wildcards (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Returns a row per XML schema component that is an Attribute-Wildcard (kind of V) or Element-Wildcard (kind of W), both with symbol_space of N.


See sys.xml_schema_wildcards.

public ITable<XmlSchema.XmlSchemaWildcard> XmlSchemaWildcards { get; }

Property Value

ITable<XmlSchema.XmlSchemaWildcard>