public void Create(ContentNodeProviderDraft instance)
 {
     var db = databaseRetriever.GetDatabase();
     if (instance.LastModifyDate == DateTime.MinValue) instance.LastModifyDate = new DateTime(1753, 1, 1);
     db.ContentNodeProviderDrafts.Insert(instance);
     TouchLegacyFilestorePathToInvalidateAnyCachesThatAreListeningForChanges();
     Thread.Sleep(1500);
 }
 public void Update(ContentNodeProviderDraft instance)
 {
     lock(_lockObject)
     {
         var contentNodeProviderDrafts = xmlFileSerializationHelper.DeserializeListFromPath<ContentNodeProviderDraft>(GetPathToDraftVersionXmlFile());
         contentNodeProviderDrafts.Remove(contentNodeProviderDrafts.Where(a => a.PageId == instance.PageId).FirstOrDefault());
         contentNodeProviderDrafts.Add(instance);
         xmlFileSerializationHelper.SerializeListToPath(contentNodeProviderDrafts, GetPathToDraftVersionXmlFile());
     }
 }
 public void Create(ContentNodeProviderDraft instance)
 {
     lock(_lockObject)
     {
         var contentNodeProviderDrafts = xmlFileSerializationHelper.DeserializeListFromPath<ContentNodeProviderDraft>(GetPathToDraftVersionXmlFile());
         contentNodeProviderDrafts.Add(instance);
         xmlFileSerializationHelper.SerializeListToPath(contentNodeProviderDrafts, GetPathToDraftVersionXmlFile());
     }
 }
 public void Update(ContentNodeProviderDraft instance)
 {
     var db = databaseRetriever.GetDatabase();
     db.ContentNodeProviderDrafts.UpdateByPageId(instance);
     TouchLegacyFilestorePathToInvalidateAnyCachesThatAreListeningForChanges();
 }
 public void Update(ContentNodeProviderDraft instance)
 {
     dataModelDataContext.Update(instance);
 }