mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:07:23 +08:00
Update unit test
This commit is contained in:
parent
d6376aeec8
commit
3ee57fa74a
@ -13,6 +13,7 @@ namespace OrmTest
|
|||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
|
|
||||||
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
|
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
|
||||||
{
|
{
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
@ -23,7 +24,14 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
Console.WriteLine(s);
|
Console.WriteLine(s);
|
||||||
};
|
};
|
||||||
//db.CodeFirst.InitTables<User_Test001>();
|
try
|
||||||
|
{
|
||||||
|
db.CodeFirst.InitTables<User_Test001>();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
//In the future to deal with
|
||||||
|
}
|
||||||
var list=db.Queryable<User_Test001>().ToList();
|
var list=db.Queryable<User_Test001>().ToList();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user