简体   繁体   中英

How can I use existing database in SERENE Core?

I already have a database in SQL Server 2019 express and I would love to be able to use it in SERENE, how should I do it?

The Migration helper checks, if the database of the connection string exists. if yes data for migration will not be executed. Switch of this check in Line 205 in file Datamigrations.cs of:

            if (!isOracle && cs.ConnectionString.IndexOf(typeof(DataMigrations).Namespace +
                    @"_" + databaseKey + "_v1", StringComparison.OrdinalIgnoreCase) < 0)
            {
//                SkippedMigrations = true;
//                return;
            }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM