mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
-
This commit is contained in:
@@ -5,11 +5,13 @@ using System.Text;
|
|||||||
|
|
||||||
namespace OrmTest.Demo
|
namespace OrmTest.Demo
|
||||||
{
|
{
|
||||||
public class DbFirst
|
public class DbFirst:DemoBase
|
||||||
{
|
{
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
|
var db = GetInstance();
|
||||||
|
//Create all class
|
||||||
|
db.DbFirst.CreateClassFile("c:\\Demo\\all");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -17,27 +17,28 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
/***Unit Test***/
|
///***Unit Test***/
|
||||||
new Field(1).Init();
|
//new Field(1).Init();
|
||||||
new Where(1).Init();
|
//new Where(1).Init();
|
||||||
new Method(1).Init();
|
//new Method(1).Init();
|
||||||
new JoinQuery(1).Init();
|
//new JoinQuery(1).Init();
|
||||||
new SingleQuery(1).Init();
|
//new SingleQuery(1).Init();
|
||||||
new SelectQuery(1).Init();
|
//new SelectQuery(1).Init();
|
||||||
new AutoClose(1).Init();
|
//new AutoClose(1).Init();
|
||||||
new Insert(1).Init();
|
//new Insert(1).Init();
|
||||||
new Delete(1).Init();
|
//new Delete(1).Init();
|
||||||
new Update(1).Init();
|
//new Update(1).Init();
|
||||||
new Mapping(1).Init();
|
//new Mapping(1).Init();
|
||||||
|
|
||||||
/***Performance Test***/
|
///***Performance Test***/
|
||||||
new SqlSugarPerformance(100).Select();
|
//new SqlSugarPerformance(100).Select();
|
||||||
|
|
||||||
/***Demo***/
|
///***Demo***/
|
||||||
OrmTest.Demo.Query.Init();
|
//OrmTest.Demo.Query.Init();
|
||||||
OrmTest.Demo.Insert.Init();
|
//OrmTest.Demo.Insert.Init();
|
||||||
OrmTest.Demo.Delete.Init();
|
//OrmTest.Demo.Delete.Init();
|
||||||
OrmTest.Demo.Update.Init();
|
//OrmTest.Demo.Update.Init();
|
||||||
|
OrmTest.Demo.DbFirst.Init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user