Getting Started (Windows Universal)

  • Create new project in Visual Studio. The project type needs to be a Windows Universal App.
  • Add reference -> Universal Windows -> Extensions -> Semata.DataStore
  • Using the Designer create a new DataStore.
If you wish to use Object Model Generation do the following:
  • Ensure the DataStore has a name.
  • Create a text template and replace any existing code with this:

    <#@ template debug="true" hostspecific="true" language="C#" #>
    <#@ output extension=".cs" #>
    <#@ DataStoreCodeGenerator Processor="Semata.CodeGeneratorDirectiveProcessor" #>
    <# GenerateObjectModel(<DataStore file>, <namespace>); #>

    where:

    • <DataStore file> is the path of the DataStore relative to the project folder. If it is in the folder, this can just be its name.
    • <namespace> is the namespace the generated code will be placed in.

If you also wish to generate views for the object model do the following:
  • Create a text template and replace any existing code with this:

    <#@ template debug="false" hostspecific="true" language="C#" #>
    <#@ output extension=".cs" #>
    <#@ DataStoreCodeGenerator Processor="Semata.CodeGeneratorDirectiveProcessor" #>
    <# GenerateObjectModelViews(<DataStore file>, <object model namespace>, <namespace>); #>

    where:

    • <DataStore file> is the path of the DataStore relative to the project folder. If it is in the folder, this can just be its name.
    • <object model namespace> is the namespace that was used for object model generation.
    • <namespace> is the namespace the generated code will be placed in.

See:

This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.