.NET Framework Bookmark and Share   
 index > Microsoft Codename 'Oslo' > Modules seperated over different files in Intellipad.
 

Modules seperated over different files in Intellipad.

Hi,

I'm working on a project that needs to be structured. For this project i need to declare lots and lots of types, therefore it would be easy to use a number of modules. Refering to different modules, that are stored in different files, results in red squigglies in iPad.

Whenever i use the import or export directive in different files, iPad only looksin one file. (ex: mainmodel.m and not the imported submodel.m)

How do i tell iPad that some files work together?

My idea was that whenever i mention submodel.m, the submodel.m file from the same dir is also used; this is not the case.
Another idea was to use mproj files; these are xml files and do not bind files together. (only for compilation?)

Is the solution to using different files already in intellipad? How do i use this?


Performing my Final Project, looking into codename "Oslo".
Elger [Centric]
Hi Elger,

You can open existing M project through Intellipad: File-> Open Project. Unfortunately, there isn't a wizard similar to VS for creating new mproj. That said, you can always use Visual Studio to create new mproj files: File -> New -> Project and then choose the Oslo project type and the M project template. For similar examples, you can look at the shipping samples (http://msdn.microsoft.com/en-us/oslo/cc748654.aspx) in particular the Sample models (MQueries).

Also, in Intellipad there is Project Mode from where you can build an existing M project and get an *.mx file.

Let me know if you need further assistance.


Thanks,

Stéphane
snyomba
Hi Elger,

You can open existing M project through Intellipad: File-> Open Project. Unfortunately, there isn't a wizard similar to VS for creating new mproj. That said, you can always use Visual Studio to create new mproj files: File -> New -> Project and then choose the Oslo project type and the M project template. For similar examples, you can look at the shipping samples (http://msdn.microsoft.com/en-us/oslo/cc748654.aspx) in particular the Sample models (MQueries).

Also, in Intellipad there is Project Mode from where you can build an existing M project and get an *.mx file.

Let me know if you need further assistance.


Thanks,

Stéphane
snyomba
I see.

It works. Even with t-sql output and compilemessages.

Thanks!


Now there is a new problem: multiple modulesto one schema.

My guess is that all extents need to be defined in one module for this to happen.
Since types refer to extents, i expect this to get fuzzy. Is there a best practice for this?

Edit:
i have found this: http://msdn.microsoft.com/en-us/library/dd861703(VS.85).aspx(Designing Domains and Models Using "M" )
Meaning there are no guidelines published yet. I'll experiment with what M gives me now.

If anyone has suggestions though, they are welcomed.


Performing my Final Project, looking into codename "Oslo".
  • Edited byElger [Centric] Tuesday, July 28, 2009 11:38 AMfound there is no official release on M design patterns yet
  •  
Elger [Centric]

You can use google to search for other answers

Custom Search

More Threads

• DynamicParser and partial parses?
• MGrammar - Unordered and optional multi-projections?
• MProject.targets complains that Enumeration does not define a primary key
• Expression Evaluation in MGrammar?
• Jan CTP - Intellipad Crashing a lot
• Using MGrammar & Phoenix - any doc/samples?
• Oslo and the DSL Toolkit
• AST to M
• timestamp columns
• Oslo FAQ Post