mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update TDengine
This commit is contained in:
parent
4e144454db
commit
46673546ad
@ -7,6 +7,6 @@ namespace SqlSugar.TDengine
|
|||||||
public class STableAttribute:Attribute
|
public class STableAttribute:Attribute
|
||||||
{
|
{
|
||||||
public string Tags { get; set; }
|
public string Tags { get; set; }
|
||||||
public string STablelName { get; set; }
|
public string STableName { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>
|
|
@ -418,7 +418,7 @@ namespace SqlSugar.TDengine
|
|||||||
if (isAttr)
|
if (isAttr)
|
||||||
{
|
{
|
||||||
var attr = this.Context.Utilities.DeserializeObject<STableAttribute>(tableName.Split("{stable}").Last());
|
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));
|
tableString = string.Format(this.CreateTableSql, stableName, string.Join(",\r\n", columnArray));
|
||||||
tableName=childTableName = this.SqlBuilder.GetTranslationTableName(tableName.Split("{stable}").First().ToLower(isAutoToLowerCodeFirst));
|
tableName=childTableName = this.SqlBuilder.GetTranslationTableName(tableName.Split("{stable}").First().ToLower(isAutoToLowerCodeFirst));
|
||||||
STable.Tags =this.Context.Utilities.DeserializeObject<List<ColumnTagInfo>>( attr.Tags);
|
STable.Tags =this.Context.Utilities.DeserializeObject<List<ColumnTagInfo>>( attr.Tags);
|
||||||
|
@ -44,7 +44,7 @@ namespace TDengineTest
|
|||||||
public DateTime Ts { get; set; }
|
public DateTime Ts { get; set; }
|
||||||
public bool Boolean { 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
|
public class CodeFirstTags44
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||||
@ -53,7 +53,7 @@ namespace TDengineTest
|
|||||||
[SqlSugar.SugarColumn(IsIgnore =true)]
|
[SqlSugar.SugarColumn(IsIgnore =true)]
|
||||||
public string Tag1 { get; set; }
|
public string Tag1 { get; set; }
|
||||||
}
|
}
|
||||||
[STableAttribute(STablelName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
|
[STableAttribute(STableName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
|
||||||
public class CodeFirstTags33
|
public class CodeFirstTags33
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||||
|
Loading…
Reference in New Issue
Block a user