added Sql and Entity Framework bulk processing