google-code-export / dblinq2007

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

Implement Querymethod String.Equals #255

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a LINQ query on a MySQL 5.1 database using where to filter on a 
character field.
2. For example, "from masc in wc.MasCData
                 where masc.Customer.ToString().Equals(strCustomer)
                 select new { ... };".  
3. This is in Visual Studio 2008 (.NET 3.5) C#.

What is the expected output? What do you see instead?
No records returned; instead, an exception is thrown.  The message 
is, "S0133: Implement QueryMethod String.Equals."  I built the LINQ file 
using the --generate-equals-hash option.

What version of the product are you using? On what operating system?
0.20.1.  XP Professional, SP 3.

Please provide any additional information below.

Original issue reported on code.google.com by yspra...@productsupportservices.com on 1 Jun 2010 at 6:28

GoogleCodeExporter commented 9 years ago
Well, I have the same issue and its because of the Equals method. 

I am using Windows 7, VS2008 SP1, .net 3.5 SP1

I get this S0133: Implement QueryMethod String.Equals.

Original comment by chirdeep...@gmail.com on 19 Jul 2010 at 8:56

GoogleCodeExporter commented 9 years ago
replace the Equals method with '==' 

Original comment by mich0...@googlemail.com on 17 May 2011 at 9:34