c# - Join 2 tables that has different ID records in entity framework -


so happen have 2 tables this:

id     time     loc               01     10:00                               02     8:00      b                   03     8:00      c       04     8:00      b       

and

id     time     loc     netval     indivalue      05     10:00           4          3            06     8:00      b       7          5            07     8:00      c       1          2 

how join them have like:

id     time     loc    netval     indivalue   01     10:00                               02     8:00      b                   03     8:00      c       04     8:00      b      05     10:00           4          3            06     8:00      b       7          5            07     8:00      c       1          2 

i using entity framework 5.0 work oracle 11g... please guys

edit: here have:

var last = qu.concat<object>(sm_list); 

give me error: system.argumentexception: dbunionallexpression requires arguments compatible collection resulttypes

note qu , sm_list not same type nor implement same interface.

"note qu , sm_list not same type nor implement same interface."

and that's error message complains of:

dbunionallexpression requires arguments compatible collection resulttypes 

you need make 2 result sets have same projection before can concatenate them. can either adding dummy elements first collection (and populating them null or empty strings or whatever) or else excluding columns second collection.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -