Share via


InMemoryConventionSetBuilder.Build Method

Definition

Call this method to build a ConventionSet for the in-memory provider when using the ModelBuilder outside of OnModelCreating(ModelBuilder).

public static Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet Build ();
static member Build : unit -> Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet
Public Shared Function Build () As ConventionSet

Returns

The convention set.

Remarks

Note that it is unusual to use this method. Consider using DbContext in the normal way instead.

Applies to