Skip to content

ajcvickers/CompiledModelsDemo

Repository files navigation

CompiledModelsDemo

  1. Run the benchemark
  2. Compile a model - dotnet ef dbcontext optimize --output-dir MyCompiledModels --namespace MyCompiledModels
  3. Update OnConfiguring to use the compiled model
  4. Comment out the caching in BlogsContextModel:
public static IModel Instance
{
    get
    {
        //if (_instance == null)
        {
            _instance = new BlogsContextModel();
            _instance.Initialize();
            _instance.Customize();
        }
        
        return _instance;
    }
}
  1. Run benchmark again

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages