Table of Contents

Class MappingAttribute

Namespace
LinqToDB.Mapping
Assembly
linq2db.dll
public abstract class MappingAttribute : Attribute, _Attribute
Inheritance
MappingAttribute
Implements
Derived
Extension Methods

Properties

Configuration

Gets or sets mapping schema configuration name, for which this attribute should be taken into account. ProviderName for standard names. Attributes with null or empty string Configuration value applied to all configurations (if no attribute found for current configuration).

public string? Configuration { get; set; }

Property Value

string

Methods

Equals(object?)

Returns a value that indicates whether this instance is equal to a specified object.

public override bool Equals(object? obj)

Parameters

obj object

An object to compare with this instance or null.

Returns

bool

true if obj equals the type and value of this instance; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer hash code.

GetObjectID()

Returns mapping attribute id, based on all attribute options.

public abstract string GetObjectID()

Returns

string