mkhuwaja / linqtoexcel

Automatically exported from code.google.com/p/linqtoexcel
0 stars 0 forks source link

Using the Equals operator on Where #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

First of all, you are doing a great work on this library

I'm using it on a c# test project and, when I use a lambda query on LinQ like 
this:

var users = book.Worksheet<User>().Where(x => 
x.FirstName.Equals("Paul")).ToList();

Visual studio throw me an exception that says: "'Paul' is not a valid column 
name."

but, if I modified the query to:

var users = book.Worksheet<User>().Where(x => 
x.FirstName.Contains("Paul")).ToList();

The query works as expected.

Regards

Original issue reported on code.google.com by sarasvat...@gmail.com on 25 Apr 2011 at 10:02

GoogleCodeExporter commented 8 years ago
This has been fixed in version 1.5.2 that you can download through NuGet or 
from the downloads page.

Original comment by paulyo...@gmail.com on 27 Apr 2011 at 5:52