More things that cant be serdeser

This commit is contained in:
mh (DEV) 2025-10-16 22:51:30 +00:00
parent 7abfe28e9b
commit f310982890

View File

@ -171,11 +171,13 @@ public record class Versioned<T> : Obj<T> where T : Versioned<T>
public Metadata_Versioned Meta { get; init; } = new();
[DebuggerBrowsable( DebuggerBrowsableState.Never )]
[JsonIgnore]
public ChangeDelegate<T> OnChange { get; set; } = ( o, n ) => { };
public virtual Obj? Old => null;
Metadata_Versioned Obj.Meta => this.Meta;
[JsonIgnore]
Obj? Obj.Old => this.Old;
public Versioned() { }
@ -235,6 +237,8 @@ public record class Versioned<T> : Obj<T> where T : Versioned<T>
public record class Recorded<T> : Versioned<T> where T : Recorded<T>
{
new public Metadata_Recorded Meta { get; init; } = new();
[JsonIgnore]
new public T? Old => Meta.OldObject as T;
//public override Obj? Old => this.Old;