Esempio n. 1
0
        protected override void Seed(OptionDbCtx context)
        {
            var initor = new TraderInitor();

            initor.Init(context);

            //var ci = new ContractInitor();
            //ci.Init(context);
            base.Seed(context);
        }
Esempio n. 2
0
        void RestoreDb()
        {
            string sql = @"
USE [master]
/****** Object:  Database [Option-test]    Script Date: 11/26/2014 11:17:06 ******/
DROP DATABASE [Option-test]";
            var    ds  = new DBServer(@"Data Source=.\sqlexpress;Initial Catalog=master;Integrated Security=True");

            ds.ExecNonQuery(sql);
            ds.Dispose(); ds = null;

            var context = new OptionDbCtx();
            var initor  = new TraderInitor();

            initor.Init(context);

            //var ci = new ContractInitor();
            //ci.Init(context);
        }