public static void AppendDataSql(this MigrationBuilder migrationBuilder, string sqlDataFileName) { IConfiguration config = GetConfig(); string environment = config["ASPNETCORE_ENVIRONMENT"]; string dataPath = config["Transistor_Migrations_Data_Path"] ?? "../../data/sql/"; string dataEnvironment = environment.ToUpperInvariant() == "PROD" ? "PROD_RUSSIA" : "QA_RUSSIA"; migrationBuilder.AppendSql("COMMON_RUSSIA", dataPath, sqlDataFileName); migrationBuilder.AppendSql(dataEnvironment, dataPath, sqlDataFileName); }