Пример #1
0
        /// <summary>
        /// Set up config.cs file and start directly F5
        /// 设置Config.cs文件直接F5启动例子
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //Demo
            Demo0_SqlSugarClient.Init();
            Demo1_Queryable.Init();
            Demo2_Updateable.Init();
            Demo3_Insertable.Init();
            Demo4_Deleteable.Init();
            Demo5_SqlQueryable.Init();
            Demo6_Queue.Init();
            Demo7_Ado.Init();
            Demo8_Saveable.Init();
            Demo9_EntityMain.Init();
            DemoA_DbMain.Init();
            DemoB_Aop.Init();
            DemoC_GobalFilter.Init();
            DemoD_DbFirst.Init();;
            DemoE_CodeFirst.Init();
            DemoF_Utilities.Init();
            DemoG_SimpleClient.Init();

            //Unit test
            //NewUnitTest.Init();

            //Rest Data
            NewUnitTest.RestData();

            Console.WriteLine("all successfully.");
            Console.ReadKey();
        }
Пример #2
0
 /// <summary>
 /// Set up config.cs file and start directly F5
 /// 设置Config.cs文件直接F5启动例子
 /// </summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     Demo0_SqlSugarClient.Init();
     Demo1_Queryable.Init();
     Demo2_Updateable.Init();
     Demo3_Insertable.Init();
     Demo4_Deleteable.Init();
     Demo5_SqlQueryable.Init();
     Demo8_Saveable.Init();
     Demo7_Ado.Init();
     DemoD_DbFirst.Init();
     Console.WriteLine("all successfully.");
     Console.ReadKey();
 }
Пример #3
0
        /// <summary>
        /// Set up config.cs file and start directly F5
        /// 设置Config.cs文件直接F5启动例子
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //Set Custom  Db
            InstanceFactory.CustomDbName    = "MySql";
            InstanceFactory.CustomDllName   = "SqlSugar.MySqlConnectorCore";
            InstanceFactory.CustomNamespace = "SqlSugar.MySqlConnector";

            Demo0_SqlSugarClient.Init();
            Demo1_Queryable.Init();
            Demo2_Updateable.Init();
            Demo3_Insertable.Init();
            Demo4_Deleteable.Init();
            DemoD_DbFirst.Init();
            Console.WriteLine("all successfully.");
            Console.ReadKey();
        }