2881099
2023-07-06 13:15:32 +08:00
parent 70036d4235
commit 206fa50b90
55 changed files with 6449 additions and 6376 deletions

View File

@@ -60,6 +60,14 @@ namespace FreeSql.Tests.Dameng
[Fact]
public void StringLength36()
{
var repo = g.dameng.GetRepository<TS_SL361, long>();
var item1 = new TS_SL361 { CreatorId = "xxx '123 " };
repo.Insert(item1);
var item2 = repo.Get(item1.Id);
Assert.Equal(item1.CreatorId, item2.CreatorId);
using (var conn = g.dameng.Ado.MasterPool.Get())
{
var cmd = conn.Value.CreateCommand();
@@ -78,14 +86,6 @@ WHERE (a.""ID"" = 1) AND ROWNUM < 2";
}
}
}
//var repo = g.dameng.GetRepository<TS_SL361, long>();
//var item1 = new TS_SL361 { CreatorId = "xxx '123 " };
//repo.Insert(item1);
//var item2 = repo.Get(item1.Id);
//Assert.Equal(item1.CreatorId, item2.CreatorId);
}
class TS_SL361
{

View File

@@ -135,7 +135,7 @@ WHERE (a.""IsCompra"" = True)", sql);
public void TestSampleBy()
{
var selectSql = fsql.Select<QuestDb_Model_Test01>()
.SampleBy(1, SampleUnits.d)
.SampleBy(1, SampleUnit.day)
.WithTempQuery(q => new { q.Id, q.Activos, count = SqlExt.Count(q.Id).ToValue() })
.Where(q => q.Id != "1")
.ToSql();