mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-27 02:15:48 +08:00
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user