mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 修复 preview0808 表达式解析 null 异常
This commit is contained in:
@ -4,6 +4,17 @@ Imports Xunit
|
||||
|
||||
Namespace FreeSql.Tests.VB
|
||||
Public Class UnitTest1
|
||||
|
||||
<Fact>
|
||||
Sub IsNothing()
|
||||
Dim sql = g.sqlserver.Select(Of Testvb).Where(Function(a) a.Id = 100 AndAlso a.Title Is Nothing).ToSql()
|
||||
Assert.Equal("SELECT a.[Id], a.[Title], a.[IsDeleted], a.[IdNullable]
|
||||
FROM [Testvb] a
|
||||
WHERE (a.[Id] = 100 AND a.[Title] IS NULL)", sql)
|
||||
|
||||
Dim lst = g.sqlserver.Select(Of Testvb).Where(Function(a) a.Id = 100 AndAlso a.Title Is Nothing).ToList()
|
||||
End Sub
|
||||
|
||||
<Fact>
|
||||
Sub TestSub()
|
||||
|
||||
|
Reference in New Issue
Block a user