Interface IValueContainer<T>
- Namespace
- MASES.EntityFrameworkCore.KNet.Serialization
- Assembly
- MASES.EntityFrameworkCore.KNet.Serialization.dll
This is the main interface a class must implement to be a ValueContainer. More info here
public interface IValueContainer<in T> where T : notnull
Type Parameters
T
It is the key Type passed from Entity Framework associated to the Entity data will be stored in the ValueContainer
Properties
ClrType
The CLR Type of IEntityType
string ClrType { get; }
Property Value
EntityName
The Entity name of IEntityType
string EntityName { get; }
Property Value
Methods
GetData(IEntityType, ref object[])
Returns back the raw data associated to the Entity
void GetData(IEntityType tName, ref object[] array)
Parameters
tName
IEntityTypeThe requesting IEntityType to get the data back, can null if not available
array
object[]The array of object to be filled in with the data stored in the ValueContainer
GetProperties()
Returns back a dictionary of properties (PropertyIndex, PropertyName) associated to the Entity
IReadOnlyDictionary<int, string> GetProperties()
Returns
- IReadOnlyDictionary<int, string>
A dictionary of properties (PropertyIndex, PropertyName) filled in with the data stored in the ValueContainer