protected override void Seed(QueryingContext context) { var executor = new SqlBatchExecutor(new SqlParser(), new SqlExecutor(context.Database.Connection)); executor.ExecuteFromEmbeddedResource(Assembly.GetExecutingAssembly(), "Querying.Seed.sql"); base.Seed(context); }
private static void ExecuteResources(DbContext context, IEnumerable <string> resources) { foreach (var resource in resources) { SqlBatchExecutor.ExecuteResourceStreamFromExecutingAssembly(context, resource); } }