Added DocPdf field for caching

This commit is contained in:
Rich
2010-07-20 19:32:05 +00:00
parent 7312100a51
commit ec9ac888a0
8 changed files with 296 additions and 25 deletions

View File

@@ -177,6 +177,16 @@ namespace VEPROMS.CSLA.Library
return _FileExtension;
}
}
private byte[] _DocPdf;
public byte[] DocPdf
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
CanReadProperty("DocPdf", true);
return _DocPdf;
}
}
private int _DocumentEntryCount = 0;
/// <summary>
/// Count of DocumentEntries for this Document
@@ -275,6 +285,7 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_FileExtension = tmp.FileExtension;
_DocPdf = tmp.DocPdf;
_DocumentInfoExtension.Refresh(this);
OnChange();// raise an event
}
@@ -341,6 +352,7 @@ namespace VEPROMS.CSLA.Library
_DTS = dr.GetDateTime("DTS");
_UserID = dr.GetString("UserID");
_FileExtension = dr.GetString("FileExtension");
_DocPdf = (byte[])dr.GetValue("DocPdf");
_DocumentEntryCount = dr.GetInt32("EntryCount");
}
catch (Exception ex)