mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 21:32:04 +08:00
Update QuestDb
This commit is contained in:
27
Src/Asp.NetCore2/QuestDbTest/Demo/DemoL_BulkCopy.cs
Normal file
27
Src/Asp.NetCore2/QuestDbTest/Demo/DemoL_BulkCopy.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
internal class DemoL_BulkCopy
|
||||
{
|
||||
public static void Init()
|
||||
{
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
||||
{
|
||||
DbType = DbType.QuestDB,
|
||||
ConnectionString = Config.ConnectionString3,
|
||||
InitKeyType = InitKeyType.Attribute,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
|
||||
var list=db.Queryable<Order>().Take(2).ToList();
|
||||
var i=db.RestApi().BulkCopy(list);
|
||||
var i2 = db.RestApi().ExecuteCommand("select 1");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user