Skip to content

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:
publicstaticIModelInstance{get{//if (_instance == null){_instance=newBlogsContextModel();_instance.Initialize();_instance.Customize();}return_instance;}}
  1. Run benchmark again

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages