Class PropertyData
- Namespace
- MASES.EntityFrameworkCore.KNet.Serialization.Json.Storage
- Assembly
- MASES.EntityFrameworkCore.KNet.Serialization.dll
This is a supporting class used from DefaultValueContainer<TKey>
public class PropertyData : IJsonOnDeserialized
- Inheritance
-
PropertyData
- Implements
- Inherited Members
Constructors
PropertyData()
Initialize a new instance of PropertyData
public PropertyData()
Remarks
It is mainly used from the JSON serializer
PropertyData(IProperty, object)
Initialize a new instance of PropertyData
public PropertyData(IProperty property, object value)
Parameters
property
IPropertyThe IProperty to be stored into PropertyData associated to
value
value
objectThe data, built from EFCore, to be stored in the PropertyData
Remarks
This constructor is mandatory and it is used from DefaultValueContainer<TKey>
Properties
ClrType
public string? ClrType { get; set; }
Property Value
ManagedType
The PropertyData.ManagedTypes value of the ClrType
public PropertyData.ManagedTypes? ManagedType { get; set; }
Property Value
PropertyName
The name of the IProperty
public string? PropertyName { get; set; }
Property Value
Value
The raw value associated to the IProperty
public object? Value { get; set; }
Property Value
Methods
OnDeserialized()
The method that is called after deserialization.
public void OnDeserialized()