Class EntityDescriptor
Stores mapping entity descriptor.
Inheritance
System.Object
EntityDescriptor
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
|
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
|
Improve this Doc
View Source
Columns
Gets list of column descriptors for current entity.
Declaration
public List<ColumnDescriptor> Columns { get; }
Property Value
|
Improve this Doc
View Source
DynamicColumnsStore
Gets the dynamic columns store descriptor.
Declaration
public ColumnDescriptor DynamicColumnsStore { get; }
Property Value
|
Improve this Doc
View Source
HasCalculatedMembers
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
|
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:
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
Declaration
public Type ObjectType { get; }
Property Value
|
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
|
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
|
Improve this Doc
View Source
TypeAccessor
Gets or sets mapping type accessor.
Declaration
public TypeAccessor TypeAccessor { get; set; }
Property Value
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
Explicit Interface Implementations
|
Improve this Doc
View Source
IEntityChangeDescriptor.Columns
Declaration
IEnumerable<IColumnChangeDescriptor> IEntityChangeDescriptor.Columns { get; }
Returns
|
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
Implements
Extension Methods