bryan costanich
unread,Dec 18, 2008, 7:43:11 PM12/18/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DbLinq
hi all,
i found a bug when i run a query with optional parameters. this is the
test case that will call DbLinq.Puke():
[Test]
public void OptionalParameterTest()
{
var db = CreateDB();
string productName = null;
var dbItems =
(from a in db.Products
where (String.IsNullOrEmpty(productName) || a.ProductName ==
productName)
select a);
var list = dbItems.ToList();
}
the error is:
S0133: Implement QueryMethod 'IsNullOrEmpty'
in: \src\DbLinq\Data\Linq\Sugar\Implementation
\ExpressionDispatcher.Analyzer.cs Line: 267
after looking at the code, it looks like it's not parsing the
expression properly, and is instead expecting something else.
pascal isn't around much these days, so if anyone around wants to
tackle it, that would be awesome.
let me know,
-b