Ejemplo n.º 1
0
    public async Task ExportMetadata() {
      var serviceName = "http://localhost:7150/breeze/NorthwindIBModel/";
      var dataService = new DataService(serviceName);
      await MetadataStore.Instance.FetchMetadata(dataService);

      var metadata = MetadataStore.Instance.ExportMetadata();
      File.WriteAllText("c:/temp/metadata.txt", metadata);

      var ms = MetadataStore.Instance;

      MetadataStore.Clear();
      Assert.IsTrue(ms != MetadataStore.Instance);
      MetadataStore.Instance.ImportMetadata(metadata);
      var metadata2 = MetadataStore.Instance.ExportMetadata();
      
      
      File.WriteAllText("c:/temp/metadata2.txt", metadata2);
      Assert.IsTrue(metadata == metadata2);
    }
Ejemplo n.º 2
0
 public SaveOptions(string resourceName, DataService dataService, bool allowConcurrentSaves, String tag) {
   ResourceName = resourceName;
   DataService = dataService;
   AllowConcurrentSaves = allowConcurrentSaves;
   Tag = tag;
 }