EF:
<connectionStrings>
<add name="EFDbContext" connectionString="data source=.;initial catalog=CodeFirstDemo;user id=sa;password=******;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" />
</connectionStrings>
EFcore:
Server=.;DataBase=XXXX;Uid=sa;Pwd=123456
一样的
么么哒