Given a table (SqLite) with an Id that is defined as a UNIQUEIDENTIFIER (stored 
as TEXT) I get the following results (firstId is a Guid matching the first 
entry):


This fails (returns zero rows):

  connection.SqLite.FirstOrDefault(s => s.Id == firstId )


This works (returns one row):

  connection.SqLite.FirstOrDefault(delegate(SqLite s) { return s.Id == firstId; 
});

There is one entry matching the Id in the table. I am using the latest version 
of system.data.sqlite (1.0.79.0), .NET 4, windows 7.

Does this have something with the first being C# 2 and the second C# 3?

Truls.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to