Subsonic 3 Union Possible?

前端 未结 3 1785
甜味超标
甜味超标 2021-01-24 16:58

I have a schema like so. Menu->Pages->PageRoles->ASPNetRoles

Menu has a CategoryID.

I want to return all Menu items with a CategoryID of 6.

Some Menu ite

3条回答
  •  猫巷女王i
    2021-01-24 17:52

    If the SQL queries generated to fill your anonymous types doesn't match, no way: you must do something like this:

    dd.ToList().AddRange(ss.ToList());
    

    And of course, this implies double request to your database.

提交回复
热议问题