SqlSugar/Src/Asp.Net/PerformanceTest/Program.cs
sunkaixuan d901d6d60b -
2017-12-20 10:27:16 +08:00

44 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PerformanceTest.TestItems;
namespace PerformanceTest
{
class Program
{
/// <summary>
/// 注意注意注意注意注意:分开测试比较公平,并且请在Realse模式下启动程序SqlSugar直接引用的是项目
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
var type = DemoType.GetAll;
var ormType = OrmType.Dapper;
switch (type)
{
case DemoType.GetAll:
new TestGetAll().Init(ormType);
break;
case DemoType.GetById:
new TestGetById().Init(ormType);
break;
case DemoType.GetSql:
new TestGetSql().Init(ormType);
break;
default:
break;
}
Console.ReadKey();
}
enum DemoType
{
GetAll,
GetById,
GetSql
}
}
}