mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
add vb.net tests
This commit is contained in:
23
FreeSql.Tests.VB/UnitTest1.vb
Normal file
23
FreeSql.Tests.VB/UnitTest1.vb
Normal file
@ -0,0 +1,23 @@
|
||||
Imports System
|
||||
Imports Xunit
|
||||
|
||||
Namespace FreeSql.Tests.VB
|
||||
Public Class UnitTest1
|
||||
<Fact>
|
||||
Sub TestSub()
|
||||
|
||||
REM VB.net <20><><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
|
||||
Dim List1 = g.sqlserver.Select(Of Testvb).Where(Function(a) a.Id = 100).ToList()
|
||||
Dim List2 = g.sqlserver.Select(Of Testvb).Where(Function(a) a.Title = "xxx").ToList()
|
||||
Dim List3 = g.sqlserver.Select(Of Testvb).Where(Function(a) a.Title <> "xxx").ToList()
|
||||
|
||||
Dim List4 = g.sqlserver.Select(Of Testvb).ToList(Function(a) New With {a, a.Id, a.Title})
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Class Testvb
|
||||
Property Id As Integer
|
||||
Property Title As String
|
||||
End Class
|
Reference in New Issue
Block a user