I am currently using a DbContext
similar to this:
namespace Models
{
public class ContextDB: DbContext
{
public DbSet
You should dispose the context immediately after each Save() operation. Otherwise each subsequent Save will take longer. I had an project that created and saved complex database entities in a cycle. To my surprise, the operation became three times faster after I moved "using (var ctx = new MyContext()){...}" inside the cycle.