public void Execute() { RequestCollection requestCollection = new RequestCollection(_ModelContext); BookCollection bookCollection = new BookCollection(_ModelContext); PostCollection postCollection = new PostCollection(_ModelContext); TagCollection tagCollection = new TagCollection(_ModelContext); requestCollection.DeleteAllRequests(); bookCollection.DeleteAllBooks(); postCollection.DeleteAllPosts(); tagCollection.DeleteAllTags(); List <string> seedList = GetSeedList(); foreach (string seed in seedList) { _ModelContext.Database.ExecuteSqlRaw(seed); } }