Getting Started (Windows Win32)

  • Create new project in Visual Studio. The project type needs to be a .Net Windows Desktop application or library
  • Add reference -> Assemblies -> Extensions -> Semata.DataStore
  • Add reference -> Assemblies -> Extensions -> Semata.DataStore.Util

    This provides extensions that provide extensions to make it easier to use DataStore from .Net

  • Using the Designer create a new DataStore.
If you also wish to use Object Model generation do the following:
  • Add reference -> Assemblies -> Extensions -> Semata.DataStore.ObjectModel
  • Ensure the DataStore has a name.
  • Create a text template and replace any existing code with this:

    <#@ template debug="false" hostspecific="true" language="C#" #>
    <#@ output extension=".cs" #>
    <#@ GenerateSemataObjectModel Processor="GenerateSemataObjectModel"#>
    <# OutputUsingDirectives(); #>
    using System.Collections.ObjectModel;
    <# GenerateClasses("<DataStore file>", "<namespace>","<collection>"); #>

    where:

    • <DataStore file> is the path of the file relative to the project folder. If it is in the folder, this can just be its name.
    • <namespace> is the namespace of the generated code will be placed in.
    • <collection> is the name of a class that implements ICollection<T>. This would typically be ObservableCollection if you were using WPF; BindingList if you were using Windows Forms. In the latter case you would also need to change the using statement to use System.ComponentModel.

See: