Table of Contents

Class SystemDataSqlServerAttributeReader

Namespace
LinqToDB.Metadata
Assembly
linq2db.dll

Adds support for types and functions, defined in Microsoft.SqlServer.Types spatial types (or any other types and methods, that use SqlMethodAttribute or SqlUserDefinedTypeAttribute mapping attributes). Check https://linq2db.github.io/articles/FAQ.html#how-can-i-use-sql-server-spatial-types for additional required configuration steps to support SQL Server spatial types.

public class SystemDataSqlServerAttributeReader : IMetadataReader
Inheritance
SystemDataSqlServerAttributeReader
Implements
Inherited Members
Extension Methods

Constructors

SystemDataSqlServerAttributeReader(Type, Type)

Creates new instance of SystemDataSqlServerAttributeReader.

public SystemDataSqlServerAttributeReader(Type sqlMethodAttribute, Type sqlUserDefinedTypeAttribute)

Parameters

sqlMethodAttribute Type

SqlMethodAttribute type.

sqlUserDefinedTypeAttribute Type

SqlUserDefinedTypeAttribute type.

Fields

MicrosoftDataSqlClientProvider

Provider instance, which use mapping attributes from Microsoft.Data.SqlClient assembly (v1-4). Could be null of assembly not found.

public static IMetadataReader? MicrosoftDataSqlClientProvider

Field Value

IMetadataReader

MicrosoftSqlServerServerProvider

Provider instance, which uses mapping attributes from Microsoft.SqlServer.Server assembly. Used with Microsoft.Data.SqlClient provider starting from v5. Could be null of assembly not found.

public static IMetadataReader? MicrosoftSqlServerServerProvider

Field Value

IMetadataReader

SystemDataSqlClientProvider

Provider instance, which use mapping attributes from System.Data.SqlClient assembly. Could be null of assembly not found.

public static IMetadataReader? SystemDataSqlClientProvider

Field Value

IMetadataReader

Methods

GetAttributes(Type)

public MappingAttribute[] GetAttributes(Type type)

Parameters

type Type

Returns

MappingAttribute[]

GetAttributes(Type, MemberInfo)

public MappingAttribute[] GetAttributes(Type type, MemberInfo memberInfo)

Parameters

type Type
memberInfo MemberInfo

Returns

MappingAttribute[]

GetDynamicColumns(Type)

public MemberInfo[] GetDynamicColumns(Type type)

Parameters

type Type

Returns

MemberInfo[]

GetObjectID()

public string GetObjectID()

Returns

string