Table of Contents

Class DynamicColumnsAttribute

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Marks a writable property of an entity as the store that receives the row's columns which are not mapped to a declared member. The property must be assignable from Dictionary<TKey, TValue> with string keys and object values.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class DynamicColumnsAttribute : Attribute
Inheritance
DynamicColumnsAttribute
Inherited Members
Extension Methods

Remarks

Read side only: when the entity is queried as a whole (for example context.From<TEntity>()) the generated SELECT appends the source's * after the mapped columns and the store is materialised with every returned column whose name is not one of the mapped columns. Writing the keys back as columns is not implemented; see docs/advanced/limitations.md. The column names are taken from the result set (the database schema), so the store is only populated for a single physical source — a query with joins rejects the store with NotSupportedException.