Hi
- Using LLBLGen Pro.version: 2.0.0.0 Final (October 3rd, 2006)
- FileVersion of SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll is 2.0.0.61005
- FileVersion of SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll is 2.0.0.60722
- Database is a SQL Server 2000 - Service Pack 1
- Template Group is Adapter
- LLBL database driver is "SQLServer DBDriver (2.0.07282006)"
- Im generating to VB.NET 2.0 (VS 2005)
I have this table
CREATE TABLE [dbo].[Test] (
[MyLongId] [bigint] IDENTITY (1, 1) NOT NULL ,
[MyIntId] [int] NOT NULL
) ON [PRIMARY]
with this content
MyLongId MyIntId
1 10
2 11
I load all entities into a collection
Private ecTests As New EntityCollection(Of TestEntity)(New TestData.FactoryClasses.TestEntityFactory())
Private Sub btnUnfiltered_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUnfiltered.Click
Using daa As New DataAccessAdapter(True)
daa.FetchEntityCollection(ecTests, Nothing)
daa.CloseConnection()
End Using
End Sub
Then this filter works (yielding 1 result)
Dim Indexes As Generic.List(Of Integer) = ecTests.FindMatches(TestFields.MyLongId = "1")
but this does not (yielding 0 results)
Dim Indexes As Generic.List(Of Integer) = ecTests.FindMatches(TestFields.MyLongId = 1)
but then this works (yielding 1 result)
Dim Indexes As Generic.List(Of Integer) = ecTests.FindMatches(TestFields.MyLongId = cLng("1"))
How come the "TestFields.MyLongId = 1" filter does not work?
Do I really need to cast all Int32 values to Int64 before I can successfully use then in a "FindMatches" call or have I stumbled on a feature or a bug?
Otherwise thanks for a great product!
/Jakob Ventzel