mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
add test
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user