Class E087_TreeCleanup_ef
EF Core twin of : every department node loaded, then removed. EF has no trash,
so the nodes are deleted for good (the cascade on _id_parent and on the Props rows does the rest).
[ExampleMeta("E087_ef", "EF: Tree Cleanup - Remove All", "Trees", ExampleTier.Free, 1, new string[] { "EF", "Tree", "Delete" })]
public class E087_TreeCleanup_ef : EfExampleBase
Inheritance
Inherited Members
ExampleBase.ExplicitlyRequestedIds,ExampleBase.Fail(string, string, ExampleTier, long, string),ExampleBase.GetMeta(),ExampleBase.Ok(string, string, ExampleTier, long, int, string[], string?),ExampleBase.Ok(string, string, ExampleTier, long, string[], string?),ExampleBase.RunAsync(IRedbService),EfExampleBase.Contexts,EfExampleBase.NotSupported(string, string, ExampleTier, string),EfExampleBase.RunAsync(IRedbService),EfExampleBase.RunEfAsync(IDbContextFactory<FlatContext>)
Methods
RunEfAsync(IDbContextFactory<FlatContext>)
Runs the example through EF Core.
public override Task<ExampleResult> RunEfAsync(IDbContextFactory<FlatContext> contexts)