我正在使用EF Core插入条目,并且我注意到,当我调试此代码行时,context.MyEntityDbSet.AddRangeAsync(records)加载它需要一秒钟,而不是context.MyEntityDbset.AddRange(records)立即发生。调用AddRangeAsync方法时是否发生数据库调用?有什么不同AddRange吗?
context.MyEntityDbSet.AddRangeAsync(records)
context.MyEntityDbset.AddRange(records)
AddRangeAsync
AddRange
c# entity-framework-core .net-core
.net-core ×1
c# ×1
entity-framework-core ×1