EF 中配置 DbContext ,构造函数和 OnConfiguring

内容纲要

https://docs.microsoft.com/zh-cn/ef/core/miscellaneous/configuring-dbcontext

有两种配置方式,一种是
Dbcontext 构造函数和依赖注入同时使用。
public void ConfigureServices(IServiceCollection services)

一种是在OnConfiguring内配置使用

点赞
  1. cheap lexapro说道:

    I'm also commenting to let you be aware of of the excellent discovery my child encountered checking your blog. She came to understand a wide variety of details, most notably how it is like to have a marvelous coaching heart to get folks easily fully grasp a variety of complicated matters. You actually did more than my desires. I appreciate you for delivering such great, dependable, edifying and also cool guidance on that topic to Evelyn.

发表评论

邮箱地址不会被公开。 必填项已用*标注

You must enable javascript to see captcha here!