Domanda

Qualcuno sa se ci sono piani per LINQ to MDX.

Esiste attualmente un modo per utilizzare LINQ con MDX / CUBES

È stato utile?

Soluzione

La risposta è sicuramente conosciuta. Se bevi il koolaid Entity Framework, crederai che se inizi a usare EF ora (invece di linq2sql) otterrai OLAP / BI gratuitamente lungo la strada.

Altri suggerimenti

Sì, ora è possibile utilizzare LINQ to MDX / SSAS. Per abilitarlo avrai bisogno di Microsoft ADO.NET Entity Framework 4.0-4.1 (EF) insieme a SSAS Entity Framework Provider (tm). Il provider SSAS Entity Framework tradurrà LINQ in MDX. Il provider EF + SSAS Entity Framework ti consentirà di eseguire query sui cubi OLAP di SQL Server Analysis Services (SSAS).

Puoi effettuare il checkout e richiedere il provider SSAS Entity Framework qui: http://www.agiledesignllc.com/Products.htm

Divulgazione: lavoro per Agile Design LLC, la società che offre questo prodotto.

Penso che dovrebbero aggiungere più di alcuni nuovi operatori e metodi a LINQ prima di poter supportare anche un sottoinsieme significativo di MDX:

WITH SET c0 AS 'HIERARCHIZE({[Measures].[Internet Sales Amount], [Measures].[Internet Gross Profit], [Measures].[Reseller Gross Profit], [Measures].[Average Sales Amount], [Measures].[Gross Profit]})'
SET r0_1 AS 'HIERARCHIZE(Filter(Filter({[Customer].[Customer Geography].[All Customers], AddCalculatedMembers(DESCENDANTS([Customer].[Customer Geography].[All Customers], 1))}, NOT [Customer].[Customer Geography].currentmember.parent is [Customer].[Customer Geography].[All Customers] OR vba!ucase(left([Customer].[Customer Geography].currentmember.properties("CAPTION"),1)) = "u"), NOT [Customer].[Customer Geography].currentmember.level is [Customer].[Customer Geography].[Country] OR vba!ucase(left([Customer].[Customer Geography].currentmember.properties("CAPTION"),1)) = "u"))'
SELECT NON EMPTY {[c0]}
ON COLUMNS, NON EMPTY VISUALTOTALS(FILTER({[r0_1]}
,vba!ucase(right([Customer].[Customer Geography].currentmember.properties("CAPTION"),8)) = "SUBTOTAL" OR [Measures].[Internet Gross Profit] > 80000)
, "* SUBTOTAL") ON ROWS FROM [Adventure Works]
CELL PROPERTIES VALUE, FORMATTED_VALUE, FORMAT_STRING, FORE_COLOR, BACK_COLOR

Sì, ora grazie a questo nugget " PercolatorAnalysisServices " di Matt Hallmark, puoi utilizzare le query linq per recuperare i dati dal cubo (servizi analitici) e hai anche la possibilità di eseguire una codifica di query mdx completa, dai un'occhiata a tutorial , molto utile

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top