Update TDengine

This commit is contained in:
sunkaixuan 2023-11-19 00:03:07 +08:00
parent 4e144454db
commit 46673546ad
4 changed files with 4 additions and 28 deletions
Src/Asp.NetCore2
SqlSugar.TDengineCore
TDengineTest/Models/Unit

View File

@ -7,6 +7,6 @@ namespace SqlSugar.TDengine
public class STableAttribute:Attribute
{
public string Tags { get; set; }
public string STablelName { get; set; }
public string STableName { get; set; }
}
}

View File

@ -1,24 +0,0 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>SqlSugar.TDengineCore</id>
<version>3.2</version>
<authors>sunkaixuan</authors>
<owners>Landa</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
<projectUrl>https://github.com/sunkaixuan/SqlSugar</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/a82c03402497b2e58fd65038a3699b30</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description> SqlSugar TDengine 核心库 ,DEMO用例 https://github.com/DotNetNext/SqlSugar </description>
<copyright>Copyright 2016</copyright>
<tags>TDengine Tdengine tdengine</tags>
<dependencies>
<group targetFramework=".NETStandard2.1">
<dependency id="TDengine.Ado.Data" version="1.6.16" />
</group>
</dependencies>
</metadata>
<files>
<file src="G:\Git\SqlSugar\Src\Asp.NetCore2\SqlSugar.TDengineCore\bin\Debug\netstandard2.1\SqlSugar.TDengineCore.dll" target="lib\netstandard2.1"></file>
</files>
</package>

View File

@ -418,7 +418,7 @@ namespace SqlSugar.TDengine
if (isAttr)
{
var attr = this.Context.Utilities.DeserializeObject<STableAttribute>(tableName.Split("{stable}").Last());
stableName= this.SqlBuilder.GetTranslationTableName(attr.STablelName.ToLower(isAutoToLowerCodeFirst));
stableName= this.SqlBuilder.GetTranslationTableName(attr.STableName.ToLower(isAutoToLowerCodeFirst));
tableString = string.Format(this.CreateTableSql, stableName, string.Join(",\r\n", columnArray));
tableName=childTableName = this.SqlBuilder.GetTranslationTableName(tableName.Split("{stable}").First().ToLower(isAutoToLowerCodeFirst));
STable.Tags =this.Context.Utilities.DeserializeObject<List<ColumnTagInfo>>( attr.Tags);

View File

@ -44,7 +44,7 @@ namespace TDengineTest
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
}
[STableAttribute( STablelName = "CodeFirstStable", Tags="[{ Name:\"Tag1\",Value:\"1\"}]")]
[STableAttribute( STableName = "CodeFirstStable", Tags="[{ Name:\"Tag1\",Value:\"1\"}]")]
public class CodeFirstTags44
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
@ -53,7 +53,7 @@ namespace TDengineTest
[SqlSugar.SugarColumn(IsIgnore =true)]
public string Tag1 { get; set; }
}
[STableAttribute(STablelName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
[STableAttribute(STableName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
public class CodeFirstTags33
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]