This commit is contained in:
2881099
2022-05-20 10:49:12 +08:00
parent 5ba6bf101d
commit 04ba968b61
2 changed files with 195 additions and 0 deletions

View File

@ -16,6 +16,18 @@ namespace FreeSql.Tests
{
public class UnitTest5
{
[Fact]
public void TestConstDtoStringEmpty()
{
var fsql = g.mysql;
var sql = fsql.Select<TestDto>().ToSql(a => new
{
empty = ""
});
Assert.Equal(@"SELECT '' as1
FROM `TestDto` a", sql);
}
// DTO
public class TestDto
{