Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The binary operator GreaterThan is not defined for the types 'System.Int32' and 'System.Int64'. #325

Open
GoogleCodeExporter opened this issue Apr 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create table with column named 'Count' of type 'Int64'
2. Use it in any part of the query

Example
[Table]
class Foo
{
  [Column]
  public string Bar;
  [Column]
  public long Count;
}

var count = (from f in db.Foo
             where f.Bar == "Fred"
              && f.Count  > Convert.ToInt64(0L)             
             select f).FirstOrDefault();


What is the expected output? What do you see instead?

If used in where predicate:
  The binary operator GreaterThan is not defined for the types 'System.Int32' and 'System.Int64'.
(see dblinq-stack.txt)



What version of the product are you using? On what operating system?
DbLinq: 0.20.0.0


Original issue reported on code.google.com by [email protected] on 19 Feb 2012 at 9:43

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant