Issue 332 in dblinq2007: DqLinq to MySql Inheritance issue

5 views
Skip to first unread message

dblin...@googlecode.com

unread,
Jun 9, 2012, 3:32:43 PM6/9/12
to dblin...@googlegroups.com
Status: New
Owner: ----

New issue 332 by joris.mi...@gmail.com: DqLinq to MySql Inheritance issue
http://code.google.com/p/dblinq2007/issues/detail?id=332

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.

Reply all
Reply to author
Forward
0 new messages