示例#1
0
        static void Main(string[] args)
        {
            SupportManager sp = SupportManager.Instance();

            sp.ConnectionString = "Data Source=.;Initial Catalog=Health.MsSqlDatabase;User Id=user;Password=zzz;";
            sp.AddIncludePath(@"\..\..\..\..\Materials\");
            sp.AddIncludePath(@"\..\..\..\..\Health\Support\Scripts\");
            sp.AddIncludePath(@"\..\..\..\..\Health\Health.MsSqlDatabase\Scripts\Post-Deployment\");

            sp.AddTask("Очистка базы", new ExecuteFileScriptTask("ClearDatabase.sql"));
            sp.AddTask("Вставка диагнозов", new ICDParser("ICD10RUS.xls"));
            sp.AddTask("Вставка тестовых данных", new ExecuteFileScriptTask("TestData.sql"));
            sp.ProcessAvailableTasks();
        }
示例#2
0
 internal static SupportManager Instance()
 {
     return _dbManager ?? (_dbManager = new SupportManager());
 }
示例#3
0
 internal static SupportManager Instance()
 {
     return(_dbManager ?? (_dbManager = new SupportManager()));
 }