locked
Automate programmatically the workflow TablePerTypeStrategy.xaml RRS feed

  • Question

  • Hi,

    I have been trying to automate programmatically the Entity Framework's Designer option Generate a Database which runs the Workflow activlity, TablePerTypeStrategy.xaml.

    With help from this post
    http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/e34268cd-ad87-4f82-884b-cd61b8fb9890

    I have been able to run the CsdlToSsdlAndMslActivity, but this does not appear to have the option to import an existing Msl (since there might be custom mappings already).

    However, the TablePerTypeStrategy has InArguments

     <x:Property Name="ExistingSsdl" Type="InArgument(s:String)" />
    <x:Property Name="ExistingMsl" Type="InArgument(s:String)" />

    and in trying to create my own Workflow console application to run the Sequence all I get is an Object reference exception. And I think this is because of an XML issue implying the XML of the TablePerTypeStrategy is wrong.

    Please can you give me a clue:
    1. How the TablePerTypeStrategy could be run programmatically where an existing Msl could be imported and Convention used to update any missing mappings needed.
    2. Or some other method to update an Msl of an Edmx.

    Thanks
    John

    Tuesday, June 11, 2013 11:13 AM

Answers