Method OnModelCreating(ModelBuilder)

Assembly: redb.Examples.dll

Override this method to further configure the model that was discovered by convention from the entity types
exposed in properties on your derived context. The resulting model may be cached
and re-used for subsequent instances of your derived context.

protected override void OnModelCreating(ModelBuilder modelBuilder)

Remarks

If a model is explicitly set on the options for this context (via )
then this method will not be run. However, it will still run when creating a compiled model.


See Modeling entity types and relationships for more information and
examples.