fmwviormv / sqlite-net

Automatically exported from code.google.com/p/sqlite-net
0 stars 0 forks source link

Where expression throws exception with double member lookup #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems like sqlite-net has problems with where expressions like the following:

Db.Connection.Table<Db.Question>().Where(x => x.TagTypeId == 
SharedData.tag.TypeId);

this works:

var temp = SharedData.tag.TypeId;

Db.Connection.Table<Db.Question>().Where(x => x.TagTypeId == temp);

The exception I get from the first code example is:

Sqlite.cs line 1160 exception, seems like (MemberExpression)expr gives null, it 
tries to cast SharedData.tag. Maybe it doesn't support multiple . member 
lookups?

Original issue reported on code.google.com by anders.rune.jensen on 7 Jul 2010 at 1:59

GoogleCodeExporter commented 9 years ago
Yes, I do believe you're right regarding the multi-member lookup. I'll try to 
get his fixed.

Original comment by frank.al...@gmail.com on 13 Nov 2010 at 11:45