public void Create(ContentNodeProviderPublishedVersion instance)
 {
     var db = databaseRetriever.GetDatabase();
     if (instance.LastModifyDate == DateTime.MinValue) instance.LastModifyDate = new DateTime(1753, 1, 1);
     db.ContentNodeProviderPublishedVersions.Insert(instance);
     TouchLegacyFilestorePathToInvalidateAnyCachesThatAreListeningForChanges();
     Thread.Sleep(1500);
 }
Ejemplo n.º 2
0
 public void Create(ContentNodeProviderPublishedVersion instance)
 {
     lock(_lockObject)
     {
         var contentNodeProviderPublishedVersions = GetContentNodeProviderPublishedVersionsFromXmlFile();
         contentNodeProviderPublishedVersions.Add(instance);
         xmlFileSerializationHelper.SerializeListToPath(contentNodeProviderPublishedVersions, GetPathToPublishedVersionXmlFile());
     }
 }
Ejemplo n.º 3
0
 public void Update(ContentNodeProviderPublishedVersion instance)
 {
     lock(_lockObject)
     {
         var contentNodeProviderPublishedVersions = GetContentNodeProviderPublishedVersionsFromXmlFile();
         contentNodeProviderPublishedVersions.Remove(contentNodeProviderPublishedVersions.Where(a => a.PageId == instance.PageId).FirstOrDefault());
         contentNodeProviderPublishedVersions.Add(instance);
         xmlFileSerializationHelper.SerializeListToPath(contentNodeProviderPublishedVersions, GetPathToPublishedVersionXmlFile());
     }
 }
 public void Update(ContentNodeProviderPublishedVersion instance)
 {
     dataModelDataContext.Update(instance);
 }
 public void Update(ContentNodeProviderPublishedVersion instance)
 {
     var db = databaseRetriever.GetDatabase();
     db.ContentNodeProviderPublishedVersions.UpdateByPageId(instance);
     TouchLegacyFilestorePathToInvalidateAnyCachesThatAreListeningForChanges();
 }