asp.net mvc - Subsonic 3 Union Possible? -


I have a schema like Menu-> Page-> PageRoll-> ASPNitrols

In the menu The range is id.

I want to return items of all items with a class ID of 6.

Some menu items have a franchisee key for pageID. Pages can do 1 or more roles against them. I can see the roles of currently logged in users and make sure they are in the result of joining the tables.

I want to create a union with all item items of 6 with category ID and for those users of page ID

the only way I think, but when I If I do this in subsonic, then it fails. The following tasks

  var dd = (from menu in menu (all.) Where (x => x.PageID == zero and x.CategoryID == 6) select menu); Var ss = From menu 2 to menu Include pages in all () webpages. All (on menu 2) PageId equals page. ID pages include in pagerol On all pages () Pages. The IDs are equal to the PageRoll. Pages add roles in aspnet_role.All () on PagesRoles. Rolled roles are equal. Roll Where Roles Petrolforce user () This includes (roles.rollname) & amp; Amp; Menu2.CategoryID == 6 Select Menu 2;  

How do I add results?

By doing this, it fails:

  var dd = (From the menu in the menu. All (). Where (x => x.PageID = = Tap) menu). The union (menu in menu 2 to join all () webpage. All () menus are equal to 2. paged page. All pages on page pages are included in the id pages. () .ID is equal to pagerol Playapp plays a role in pagerol aspnet_role.All (), rolls are equal to roles, roles where roles, gatorolforus user (), include (roles.rollname) select menu 2);  Edit    

I can get results in SFL, it is translated into LINQ / Subsonic again at the Open Zone (see below). . Fails SELECT * OUTER PPIID = M outside the menu M. PIIDID on PAADIDID = PIIDID = PIID left over ASPNEEEROS A on a .ROLEID = R.ROLEID WHERE (CATEGORYID = 1) or (CDE = 1 and AOTMA ('Administrator' , 'User')))

Even some simple fails

  var resu = db to p. Db in menu Pages of p.PageID are added to the web page temp.DefaultIfEmpty () are pages that are equivalent to pages.id in pages temporarily;  

It seems that you enter a bug in the implementation of SubSonic of Union / Concat You should report it to the Google code site, you just need to be able to do the following, which I'm sure you already did:

  var unionList = dd .Concat (ss) For the list & lt; Menu & gt; ();  

In the meantime, you should be close to the following after exiting:

  var ss = From the menu in the menu. Include all pages on all () web pages. All page (2) on page 2. In pages in pages similar to pages in the menu from the menu. Menu Default ifEmpty () group pages are included in the PageRoll Roll. On pages On all pages Pages in Pages PageRoad page page pages similar to PageAds pagerolls page The default effects () group contains roles in aspnet_role.All () equals to pagesRoles.RoleId roles. RRROLollows in RRIOLOLOLS pages in pages. Default IFEmpty () where menu.PageID == faucet || (Roles.Gatoroloruser (). It includes (roles .roll name) and menu2.CategoryID == 6) Selection menu;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -