EFCore語法兼容性
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured) optionsBuilder.UseSqlServer(@setDBConnString, o => o.UseCompatibilityLevel(110));
}
UseCompatibilityLevel 不同層級
參考來源:
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured) optionsBuilder.UseSqlServer(@setDBConnString, o => o.UseCompatibilityLevel(110));
}
UseCompatibilityLevel 不同層級
留言
張貼留言