任何人都知道是否有LINQ to MDX的计划。

当前是否存在使用LINQ with MDX / CUBES

的方法
有帮助吗?

解决方案

答案肯定是知道的。如果你喝Entity Framework koolaid,你会相信如果你现在开始使用EF(而不是linq2sql),你将获得免费的OLAP / BI。

其他提示

是的,现在可以使用LINQ to MDX / SSAS。您将需要Microsoft ADO.NET Entity Framework 4.0-4.1(EF)以及SSAS实体框架提供程序(tm)来启用它。 SSAS实体框架提供程序将LINQ转换为MDX。 EF + SSAS实体框架提供程序将使您能够查询SQL Server Analysis Services(SSAS)OLAP多维数据集。

您可以在此处结帐并申请SSAS实体框架提供商: http://www.agiledesignllc.com/Products.htm

披露:我为Agile Design LLC工作 - 提供此产品的公司。

我认为他们必须向LINQ添加一些新的运算符和方法才能支持甚至是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

是的,现在感谢 nugget " PercolatorAnalysisServices"通过Matt Hallmark,您可以使用linq查询从多维数据集中获取数据(分析服务),并且您还可以执行完整的mdx查询incode,请查看此教程,非常有帮助

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top