Using PowerShell to Program against M
Jon Flanders blogged Programming against M in which he uses the M Compiler to retrieve M artifacts. He processed all the Models that are part of the Oslo SDK retrieving the extent names.
Following his example I built a PowerShell Function Get-ExtentTypeNames. Here is one result the function can be used to generate .
Get-ExtentTypeNames | Group -NoElement ModuleName | Sort Count -Descending | Format-Table –AutoSize
LINQ and PowerShell
Jon used LINQ to grab the first CollectionType out of the ParameterizedExpression. I thought the PowerShell version was interesting.
| LINQ | |
| PowerShell |
What is M?
The “M” language is a declarative language for working with data and building domain models in Oslo. “Oslo" is the code name for the Microsoft’s next generation application development platform.
Download PowerShell Code
You need to have the latest Oslo SDK installed.

