cake-contrib / Cake.EntityFramework6

A set of Cake aliases for Entity Framework 6 (not .NET Core) code-first migration using the ef6.exe command line interface (cli).
https://cakebuild.net/extensions/cake-entityframework6/
MIT License
1 stars 2 forks source link

Where is Migrator? #5

Open soroshsabz opened 1 year ago

soroshsabz commented 1 year ago

ITNOA

When I use Cake.EntityFramework as you can know, I can use EfMigrator to create migration sql file and save it, or apply it as I wish, but in new EntityFramework6, I do not know how to doing like below

            var migrationSettings = new EfMigratorSettings
            {
                AssemblyPath = dataProject.DllFilePath,
                ConfigurationClass = "BSN.Resa.Core.Data.Migrations.Configuration",
                AppConfigPath = serviceProject.Path + "/bin/app.publish/Web.config",
                ConnectionString = @"Data Source=(localdb)\MSSQLLocalDB; Initial Catalog=Resa.Accounting; Integrated Security=True; MultipleActiveResultSets=True;",
                ConnectionProvider = "System.Data.SqlClient"
                //ConnectionName = ""
            };
            using (var migrator = CreateEfMigrator(migrationSettings))
            {
                string migrationScript = migrator.GenerateScriptForLatest();
                FileWriteText(ARTIFACTS_DIRECTORY + "migration.sql", migrationScript);

                migrator.MigrateToLatest();
                migrator.Commit();
            }

Where is these methods?

soroshsabz commented 1 year ago

@devlead Did you can some help me?

thanks

soroshsabz commented 1 year ago

@louisfischer Did you know why methods in Cake.EntityFramework does not exist in this library?

As you can know, I want to know relationships between these libraries in https://github.com/cake-contrib/Cake.EntityFramework/issues/41

soroshsabz commented 1 year ago

@louisfischer @devlead Are you accept PR for brings all same functionality from Cake.EntityFramework?

soroshsabz commented 11 months ago

Any update?