Search Results for

    Show / Hide Table of Contents

    Class EntityDescriptor

    Stores mapping entity descriptor.

    Inheritance
    System.Object
    EntityDescriptor
    Implements
    IEntityChangeDescriptor
    Namespace: LinqToDB.Mapping
    Assembly: linq2db.dll
    Syntax
    public class EntityDescriptor : object, IEntityChangeDescriptor

    Constructors

    | Improve this Doc View Source

    EntityDescriptor(MappingSchema, Type)

    Creates descriptor instance.

    Declaration
    public EntityDescriptor(MappingSchema mappingSchema, Type type)
    Parameters
    Type Name Description
    MappingSchema mappingSchema

    Mapping schema, associated with descriptor.

    Type type

    Mapping class type.

    Properties

    | Improve this Doc View Source

    Aliases

    Gets mapping dictionary to map column aliases to target columns or aliases.

    Declaration
    public Dictionary<string, string?>? Aliases { get; }
    Property Value
    Type Description
    System.Nullable<Dictionary<System.String, System.Nullable<System.String>>>
    | Improve this Doc View Source

    Associations

    Gets list of association descriptors for current entity.

    Declaration
    public List<AssociationDescriptor> Associations { get; }
    Property Value
    Type Description
    List<AssociationDescriptor>
    | Improve this Doc View Source

    CalculatedMembers

    Gets list of calculated column members (properties with IsColumn set to true).

    Declaration
    public List<MemberAccessor>? CalculatedMembers { get; }
    Property Value
    Type Description
    System.Nullable<List<MemberAccessor>>
    | Improve this Doc View Source

    Columns

    Gets list of column descriptors for current entity.

    Declaration
    public List<ColumnDescriptor> Columns { get; }
    Property Value
    Type Description
    List<ColumnDescriptor>
    | Improve this Doc View Source

    DynamicColumnsStore

    Gets the dynamic columns store descriptor.

    Declaration
    public ColumnDescriptor DynamicColumnsStore { get; }
    Property Value
    Type Description
    ColumnDescriptor
    | Improve this Doc View Source

    HasCalculatedMembers

    Returns true, if entity has calculated columns. Also see CalculatedMembers.

    Declaration
    public bool HasCalculatedMembers { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    InheritanceMapping

    Gets list of inheritance mapping descriptors for current entity.

    Declaration
    public List<InheritanceMapping> InheritanceMapping { get; }
    Property Value
    Type Description
    List<InheritanceMapping>
    | Improve this Doc View Source

    IsColumnAttributeRequired

    Gets or sets column mapping rules for current mapping class or interface. If true, properties and fields should be marked with one of those attributes to be used for mapping:

    • ColumnAttribute;
    • PrimaryKeyAttribute;
    • IdentityAttribute;
    • ColumnAliasAttribute. Otherwise all supported members of scalar type will be used:
    • public instance fields and properties;
    • explicit interface implementation properties. Also see IsStructIsScalarType and ScalarTypeAttribute.
    Declaration
    public bool IsColumnAttributeRequired { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Item[String]

    Gets column descriptor by member name.

    Declaration
    public ColumnDescriptor this[string memberName] { get; }
    Parameters
    Type Name Description
    System.String memberName

    Member name.

    Property Value
    Type Description
    ColumnDescriptor

    Returns column descriptor or null, if descriptor not found.

    | Improve this Doc View Source

    Name

    Gets name of table or view in database.

    Declaration
    public SqlObjectName Name { get; }
    Property Value
    Type Description
    LinqToDB.SqlQuery.SqlObjectName
    | Improve this Doc View Source

    ObjectType

    Gets mapping class type.

    Declaration
    public Type ObjectType { get; }
    Property Value
    Type Description
    Type
    | Improve this Doc View Source

    QueryFilterFunc

    Declaration
    public Delegate? QueryFilterFunc { get; }
    Property Value
    Type Description
    System.Nullable<Delegate>
    | Improve this Doc View Source

    SkipModificationFlags

    Gets flags for which operation values are skipped.

    Declaration
    public SkipModification SkipModificationFlags { get; }
    Property Value
    Type Description
    SkipModification
    | Improve this Doc View Source

    TableOptions

    Gets or sets table options. See TableOptions enum for support information per provider.

    Declaration
    public TableOptions TableOptions { get; }
    Property Value
    Type Description
    TableOptions
    | Improve this Doc View Source

    TypeAccessor

    Gets or sets mapping type accessor.

    Declaration
    public TypeAccessor TypeAccessor { get; set; }
    Property Value
    Type Description
    TypeAccessor

    Methods

    | Improve this Doc View Source

    FindColumnDescriptor(MemberInfo)

    Returns column descriptor based on its MemberInfo

    Declaration
    public ColumnDescriptor FindColumnDescriptor(MemberInfo memberInfo)
    Parameters
    Type Name Description
    MemberInfo memberInfo
    Returns
    Type Description
    ColumnDescriptor

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEntityChangeDescriptor.Columns

    Declaration
    IEnumerable<IColumnChangeDescriptor> IEntityChangeDescriptor.Columns { get; }
    Returns
    Type Description
    IEnumerable<IColumnChangeDescriptor>
    | Improve this Doc View Source

    IEntityChangeDescriptor.DatabaseName

    Declaration
    string? IEntityChangeDescriptor.DatabaseName { get; set; }
    Returns
    Type Description
    System.Nullable<System.String>
    | Improve this Doc View Source

    IEntityChangeDescriptor.SchemaName

    Declaration
    string? IEntityChangeDescriptor.SchemaName { get; set; }
    Returns
    Type Description
    System.Nullable<System.String>
    | Improve this Doc View Source

    IEntityChangeDescriptor.ServerName

    Declaration
    string? IEntityChangeDescriptor.ServerName { get; set; }
    Returns
    Type Description
    System.Nullable<System.String>
    | Improve this Doc View Source

    IEntityChangeDescriptor.TableName

    Declaration
    string IEntityChangeDescriptor.TableName { get; set; }
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    IEntityChangeDescriptor.TableOptions

    Declaration
    TableOptions IEntityChangeDescriptor.TableOptions { get; set; }
    Returns
    Type Description
    TableOptions

    Implements

    IEntityChangeDescriptor

    Extension Methods

    Map.DeepCopy<T>(T)
    Sql.IsDistinctFrom<T>(T, T)
    Sql.IsNotDistinctFrom<T>(T, T)
    SqlExtensions.In<T>(T, IEnumerable<T>)
    SqlExtensions.In<T>(T, IQueryable<T>)
    SqlExtensions.In<T>(T, T[])
    SqlExtensions.In<T>(T, T, T)
    SqlExtensions.In<T>(T, T, T, T)
    SqlExtensions.NotIn<T>(T, IEnumerable<T>)
    SqlExtensions.NotIn<T>(T, IQueryable<T>)
    SqlExtensions.NotIn<T>(T, T[])
    SqlExtensions.NotIn<T>(T, T, T)
    SqlExtensions.NotIn<T>(T, T, T, T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2011-2022 linq2db.com

    Generated by DocFX