EventHorizon.Blazor.TypeScript.Interop.Generator icon indicating copy to clipboard operation
EventHorizon.Blazor.TypeScript.Interop.Generator copied to clipboard

Generate JavaScript object for a CacheEntity created for an Interface

Open canhorn opened this issue 2 years ago • 0 comments

To the default constructor for Interfaces that have a CachedEntity create should create a default object in the JavaScript layer. This will make it so the cached entity can be easily created and referenced.

public InterfacedCachedEntity()
{
    var entity = EventHorizonBlazorInterop.New(new string[] { "Object" }, null);
    ___guid = entity.___guid;
}

canhorn avatar Oct 25 '21 02:10 canhorn