Skip to content

Commit

Permalink
修改
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing committed Dec 15, 2023
1 parent 38d3d1f commit e89bf71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore EFCore.Taos.sln
- name: Build
Expand Down
4 changes: 4 additions & 0 deletions EFCore.Taos.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{61AA7587-946B-4B2F-92C9-73D0BA670B97}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
.workflow\BranchPipeline.yml = .workflow\BranchPipeline.yml
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
LICENSE = LICENSE
docs\logo.png = docs\logo.png
.workflow\MasterPipeline.yml = .workflow\MasterPipeline.yml
.workflow\PRPipeline.yml = .workflow\PRPipeline.yml
README.md = README.md
taos.cfg = taos.cfg
docs\taos_ch.png = docs\taos_ch.png
Expand Down
13 changes: 3 additions & 10 deletions src/Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ private static void Main(string[] args)
Port = 80,
PoolSize = 20
};
Console.WriteLine("issue245");
issue245.test(new TaosConnection(builder.UseWebSocket().ConnectionString));
Console.WriteLine("issues252");
issues252.demo_code(builder);
#if DEBUG

// ExecSqlByNative(builder_cloud.UseCloud_DSN());
Console.WriteLine("ExecSqlByNative");
ExecSqlByNative(builder.UseNative());
Expand All @@ -81,15 +83,6 @@ private static void Main(string[] args)
Console.WriteLine("UseTaosEFCore");
UseTaosEFCore(builder.UseWebSocket());


#else
ExecSqlByNative(builder.UseNative());
UseTaosEFCore(builder.UseNative());
ExecSqlByRESTFul(builder.UseRESTful());
ExecSqlByStmt(builder.UseWebSocket());
ExecSqlByWebSocket(builder.UseWebSocket());
UseTaosEFCore(builder.UseWebSocket());
#endif
Console.WriteLine("select * from power.meters");
using (var connection = new TaosConnection(builder.ConnectionString))
{
Expand Down

0 comments on commit e89bf71

Please sign in to comment.