mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update unit test
This commit is contained in:
parent
d6376aeec8
commit
3ee57fa74a
@ -13,6 +13,7 @@ namespace OrmTest
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
|
||||
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
|
||||
{
|
||||
ConnectionString = Config.ConnectionString,
|
||||
@ -23,7 +24,14 @@ namespace OrmTest
|
||||
{
|
||||
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();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user