Skip to content

Commit

Permalink
Add demo
Browse files Browse the repository at this point in the history
  • Loading branch information
DotNetNext committed Apr 25, 2023
1 parent 1211bef commit a9c47a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Src/Asp.NetCore2/Net7Test/NET7Test/NET7Test/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using NET7Test;
using SqlSugar;
using SqlSugar.DbConvert;
using System.Text.Json;
using System.Text.Json.Nodes;

ServerTest();
SqliteTest();
Expand Down Expand Up @@ -62,6 +64,13 @@ static void ServerTest()
{
it.Aop.OnLogExecuting = (s, p) => Console.WriteLine(s, p);
});

var payload = JsonSerializer.SerializeToNode(new { id = 1 });
var str=sqlugar.Utilities.SerializeObject(payload);

var XX=JsonSerializer.Deserialize<JsonNode>(str);
var node=sqlugar.Utilities.DeserializeObject<JsonNode>(str);

sqlugar.DbMaintenance.CreateDatabase();
sqlugar.CodeFirst.InitTables<UnitDate01231>();
sqlugar.CodeFirst.InitTables<UnitDatez211afa>();
Expand Down

0 comments on commit a9c47a8

Please sign in to comment.