Table of Contents

Class MetadataReader

Namespace
LinqToDB.Metadata
Assembly
linq2db.dll

Aggregation metadata reader, that just delegates all calls to nested readers.

public class MetadataReader : IMetadataReader
Inheritance
MetadataReader
Implements
Extension Methods

Constructors

MetadataReader(params IMetadataReader[])

public MetadataReader(params IMetadataReader[] readers)

Parameters

readers IMetadataReader[]

Fields

Default

Default instance of MetadataReader, used by Default. By default contains only AttributeReader.

public static MetadataReader Default

Field Value

MetadataReader

Properties

Readers

public IReadOnlyList<IMetadataReader> Readers { get; }

Property Value

IReadOnlyList<IMetadataReader>

Methods

GetDynamicColumns(Type)

Gets the dynamic columns defined on given type.

public MemberInfo[] GetDynamicColumns(Type type)

Parameters

type Type

The type.

Returns

MemberInfo[]

All dynamic columns defined on given type.

GetObjectID()

Should return a unique ID for cache purposes. If the implemented Metadata reader returns instance-specific data you'll need to calculate a unique value based on content. Otherwise just use a static const e.g. $".{nameof(YourMetadataReader)}."

public string GetObjectID()

Returns

string

The object ID as string

GetRegisteredTypes()

Enumerates types, registered by FluentMetadataBuilder.

public IReadOnlyList<Type> GetRegisteredTypes()

Returns

IReadOnlyList<Type>

Returns array with all types, mapped by fluent mappings.