You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
879 B
32 lines
879 B
using SqlSugar;
|
|
using System;
|
|
|
|
namespace OrmTest
|
|
{
|
|
class Program
|
|
{
|
|
/// <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();
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|