none
Context .tt extension metadata files RRS feed

  • Question

  • Context .tt extension metadata files not recognized by VWD 2010, Not able to load when calling the controller index.

     

    Is the 4.1 only for VS2010 ? or is there a fix somewhere??? 

    Tuesday, September 20, 2011 12:01 PM

Answers

  • Hello,

    Thanks for your post.

    As far as I know, there is no support for third-party extensions in Visual Web Developer, but you can to generate a model in Entity Developer, generate code for it, and then to add this code as a usual C#(or Visual Basic) code file.
    Then you can use the OnSelecting EntityDataSource event to work with the context in code.
    You will also need to set the Metadata Artifact Processing property to CopyToOutputDirectory, place the generated metadata to your Bin folder, and set the path to metadata in the connection string accordingly.
    The support for OracleDataSource control in VWDExpress will be available in one of the nearest builds.
    As an alternative, you can change the extension of the model from .edml to .edmx and use it like a .edmx model.

    You can try to achieve the same results using edmgen as well.

    I hope this can help you.

     

    Have a nice day,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by basbak2 Thursday, September 22, 2011 8:21 AM
    Thursday, September 22, 2011 3:23 AM
    Moderator

All replies

  • Hello,

    Thanks for your post.

    As far as I know, there is no support for third-party extensions in Visual Web Developer, but you can to generate a model in Entity Developer, generate code for it, and then to add this code as a usual C#(or Visual Basic) code file.
    Then you can use the OnSelecting EntityDataSource event to work with the context in code.
    You will also need to set the Metadata Artifact Processing property to CopyToOutputDirectory, place the generated metadata to your Bin folder, and set the path to metadata in the connection string accordingly.
    The support for OracleDataSource control in VWDExpress will be available in one of the nearest builds.
    As an alternative, you can change the extension of the model from .edml to .edmx and use it like a .edmx model.

    You can try to achieve the same results using edmgen as well.

    I hope this can help you.

     

    Have a nice day,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by basbak2 Thursday, September 22, 2011 8:21 AM
    Thursday, September 22, 2011 3:23 AM
    Moderator
  • Thanx Jackie,

    It sounds like an adventure, but I'll tackle it your  way and see if it'd work.

    Thursday, September 22, 2011 8:24 AM
  • You're welcome, if you have any issues please feel free to let me know.

     

    Good day,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, September 22, 2011 8:36 AM
    Moderator