Class E003_UniqueKeys_ef

Assembly: redb.Examples.dll

EF Core twin of : a business key that soft delete releases and a typed violation
naming the key. EF Core has no soft delete and reports a unique violation as a provider exception.

[ExampleMeta("E003_ef", "EF: Unique Keys - [RedbUnique] and value_unique", "CRUD", ExampleTier.Free, 1, new string[] { "EF", "Unique" })]
public class E003_UniqueKeys_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E003_UniqueKeys_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

public override Task<ExampleResult> RunEfAsync(IDbContextFactory<FlatContext> contexts)