Monday 15 February 2010

entity framework - How do I get to use Model1.foo instead of Model1.edmx, and invoke IModelConversionExtension callbacks -


itemprop = "text">

I use a VSIX and an associated MEF DLL according to the IModelConversionExtension class documentation, and as a pkgdef file .foo is an extension of the installation EF designer to invoke

  [PartCreationPolicy (CreationPolicy.Shared)] [export (typeof (IModelConversionExtension))] [ModelFileExtension ( "foo.")] public class MyConversionCallback:. IModelConversionExtension {Public Zero OnAfterFileLoaded (ModelConversionExtensionContext Reference) How does this get called? Return; } Public Zero OnBeforeFileSaved (ModelConversionExtensionContext Reference) {/ How is this called called? Return; }} [$ RootKey $ \ Editor \ {c99aea30-8e36-4515-b76f-496f5a48a6aa} \ Extensions] "foo" = DWORD: 00,000,032 [$ RootKey $ \ Projects] [$ RootKey $ \ projects \ {F184B08F-C81C-45F6 -A57F-5ABD9991F28F}] [$ RootKey $ \ projects \ {F184B08F-C81C-45F6-A57F-5ABD9991F28F} \ RelatedFiles] [$ RootKey $ \ projects \ {F184B08F-C81C-45F6-A57F-5ABD9991F28F} \ RelatedFiles \ .foo ] ".diagram" = DWORD: 00000002 [$ RootKey $ \ projects] [$ RootKey $ \ projects \ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}] [$ RootKey $ \ projects \ {FAE04EC0-301F-11D3-BF4B -00C04F79EFBC} \ RelatedFiles] [$ RootKey $ \ projects \ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} \ RelatedFiles \ .foo] ".diagram" = DWORD: 00000002   

I To work fine Antrn generation MEF classes can get both. And my Model1.foo calls EF Designer, but 1.Onfooted file loaded and on-bannerfile is never a fire, and 2.I get an error message when I try to save Model1.foo, which The error list asks for errors but none.

Onafferfail loaded should be applied if you load the file whose extension edmx vary from and IEntityDesignerConversionData.FileExtension provides a value that your extension Matches OnBeforeFileSaved works in the opposite way - on saving. However - I saw the code in this area today and concluded that it can not really work, I filed a work item for it:

No comments:

Post a Comment