Added DocPdf field for caching
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user