Previously I was using object context for my application. So I was using AddToTable() methods like
context.AddToTable(entity);
but now I am using DbContext and I have to use the Add method like
context.Table.Add(entity);
Now I'm having the older method called more than 300 times. So I was wondering is there any solution to change the methods solution wide.