Share via


How to: Query .NET Framework Metadata using "Quadrant"

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

This is the third step in Walkthrough: Using the System_Runtime Domain. In the preceding step, How to: Browse .NET Framework Metadata using "Quadrant", you examined metadata by browsing in Microsoft code name “Quadrant”. in this topic, you analyze .NET Framework metadata by using “M” queries in “Quadrant”. The following step is How to: Create Assembly Groups using BindingContexts.

Analyzing .NET Framework metadata using custom “M” queries in “Quadrant”

  1. Create a new, empty workpad in “Quadrant” by pressing CTRL+N.

    Shows the empty workpad.

  2. In the query bar (below the title bar), enter the following query to show all public types:

    from t in System_Runtime.Types from td in System_Runtime.TypeDefinitions where t.Id == td.Id.Id && td.Access == 1 select t
    

    This shows all types that have an access modifier of public in the imported assemblies. To display the results, press ENTER.

    Shows the custom query to display public types.

  3. You can use your own queries to find particular type definitions in the assemblies. The following query displays the type definition for DinnerNow.Data.Customer:

    from t in System_Runtime.Types where t.IsReference == false && t.QualifiedName == "DinnerNow.Data.Customer" select t
    

    Shows the custom query displaying one type.

  4. Drag the circle icon next to the Id onto the workspace to see DinnerNow.Data.Customer by using the configured Type viewer.

    Shows the workpad view of one type.

See Also

Tasks

How to: Query .NET Framework Metadata using "Quadrant"
Walkthrough: Using the System_Runtime Domain