Ejemplo n.º 1
0
        public void CreateSchemaVersion()
        {
            MigrationRepository repo = new MigrationRepository(ConnectionInfo);

            repo.ExecuteNonQuery("create table dbo.SchemaVersion(VersionTimestamp nvarchar(14) not null default(''))");

            repo.ExecuteNonQuery("insert into dbo.SchemaVersion(VersionTimestamp)Values('')");
        }
Ejemplo n.º 2
0
        private void CreateNewDatabase(string databaseName)
        {
            MigrationRepository masterRepo = new MigrationRepository(MasterConnectionInfo);

            masterRepo.ExecuteNonQuery("create database " + databaseName);
        }
Ejemplo n.º 3
0
        public void ExecuteMigrtionScript(string migrationAndSchemaVersionUpdateScript)
        {
            MigrationRepository repo = new MigrationRepository(ConnectionInfo);

            repo.ExecuteNonQuery(migrationAndSchemaVersionUpdateScript);
        }