From c57078a7cbc2c02a0cff40571f6282b9570cdee8 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 17 Nov 2010 17:30:48 +0000 Subject: [PATCH] Refresh Entry when ContentInfo refreshed (Error 159) --- PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs index 3f8b983a..35e3924a 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs @@ -504,7 +504,12 @@ namespace VEPROMS.CSLA.Library ConvertListToDictionary(); if (_CacheByPrimaryKey.ContainsKey(key)) foreach (ContentInfo tmpInfo in _CacheByPrimaryKey[key]) + { tmpInfo.RefreshFields(tmp); + // TODO: This needs to be handled in Generatedd Code. + if (tmp.MyEntry != null && tmpInfo.MyEntry != null && tmp.MyEntry.MyDocument.DocID != tmpInfo.MyEntry.MyDocument.DocID) + EntryInfo.Refresh(tmp.MyEntry); + } } protected virtual void RefreshFields(Content tmp) {