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

DqLinq to MySql Inheritance issue #332

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

DqLinq to MySql Inheritance issue #332

GoogleCodeExporter opened this issue Apr 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a simple table People with 5 attributs
id, firstName, lastName, type, grade
2. Create a simple scheme as
[Table]
[InheritanceMapping(Code = 0, Type = typeof(Normal))]
[InheritanceMapping(Code = 1, Type = typeof(Student))]
public partial class People
{
 //All atributs
 [Column (IsDiscriminator = true)]
 public int type;
}

3. Make a request
var entities = from p in provider.People.OfType<Student> select p;
foreach (Student s in entities)
//...

What is the expected output? What do you see instead?
Normaly it lists all the students in the table but it throws an exception
"S0133: Implement QueryMethod Queryable.OfType."

What version of the product are you using? On what operating system?
Using DbLinq 0.20.0 on Windows 8

Please provide any additional information below.
Trying with "var entities from p in provider.People where p is Student select 
p;" but it throws another exception about parameter.

Original issue reported on code.google.com by joris.mi...@gmail.com on 9 Jun 2012 at 7:32

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