Class SystemDataSqlServerAttributeReader
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
sqlMethodAttributeTypeSqlMethodAttribute type.
sqlUserDefinedTypeAttributeTypeSqlUserDefinedTypeAttribute 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
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
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
Methods
GetAttributes(Type)
public MappingAttribute[] GetAttributes(Type type)
  Parameters
typeType
Returns
GetAttributes(Type, MemberInfo)
public MappingAttribute[] GetAttributes(Type type, MemberInfo memberInfo)
  Parameters
typeTypememberInfoMemberInfo
Returns
GetDynamicColumns(Type)
public MemberInfo[] GetDynamicColumns(Type type)
  Parameters
typeType
Returns
GetObjectID()
public string GetObjectID()