mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update tdengine
This commit is contained in:
parent
caa0790e31
commit
e631f58f7a
@ -1,4 +1,5 @@
|
||||
using CsvHelper;
|
||||
using CsvHelper.TypeConversion;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections;
|
||||
@ -131,6 +132,8 @@ namespace SqlSugar
|
||||
using (var writer = new StreamWriter(filePath))
|
||||
using (var csv = new CsvWriter(writer, CultureInfo.CurrentCulture))
|
||||
{
|
||||
var options = new TypeConverterOptions { Formats = new[] { GetDefaultFormat() } };
|
||||
csv.Context.TypeConverterOptionsCache.AddOptions<DateTime>(options);
|
||||
await csv.WriteRecordsAsync(insertList);
|
||||
}
|
||||
|
||||
@ -177,6 +180,11 @@ namespace SqlSugar
|
||||
return result;
|
||||
}
|
||||
|
||||
private static string GetDefaultFormat()
|
||||
{
|
||||
return "yyyy-MM-ddTHH:mm:ss.fffffff";
|
||||
}
|
||||
|
||||
private Task<HttpResponseMessage> Post(HttpClient client, string name, MultipartFormDataContent httpContent)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user