/// <summary>
 /// Factory method. Asynchronously loads a <see cref="DocEditGetter"/> unit of objects, based on given parameters.
 /// </summary>
 /// <param name="docID">The DocID parameter of the DocEditGetter to fetch.</param>
 /// <param name="callback">The completion callback method.</param>
 public static void GetDocEditGetter(int docID, EventHandler <DataPortalResult <DocEditGetter> > callback)
 {
     DataPortal.BeginFetch <DocEditGetter>(new Criteria1(false, docID), (o, e) =>
     {
         if (e.Error != null)
         {
             throw e.Error;
         }
         if (!DocClassNVL.IsCached)
         {
             DocClassNVL.SetCache(e.Object.DocClassNVL);
         }
         if (!DocTypeNVL.IsCached)
         {
             DocTypeNVL.SetCache(e.Object.DocTypeNVL);
         }
         if (!DocStatusNVL.IsCached)
         {
             DocStatusNVL.SetCache(e.Object.DocStatusNVL);
         }
         if (!UserNVL.IsCached)
         {
             UserNVL.SetCache(e.Object.UserNVL);
         }
         callback(o, e);
     });
 }
 /// <summary>
 /// Factory method. Asynchronously loads a <see cref="DocListGetter"/> unit of objects, based on given parameters.
 /// </summary>
 /// <param name="docListFilteredCriteria">The DocListFilteredCriteria parameter of the DocListGetter to fetch.</param>
 /// <param name="callback">The completion callback method.</param>
 public static void GetDocListGetter(DocListFilteredCriteria docListFilteredCriteria, EventHandler <DataPortalResult <DocListGetter> > callback)
 {
     DataPortal.BeginFetch <DocListGetter>(docListFilteredCriteria, (o, e) =>
     {
         if (e.Error != null)
         {
             throw e.Error;
         }
         if (!DocClassNVL.IsCached)
         {
             DocClassNVL.SetCache(e.Object.DocClassNVL);
         }
         if (!DocTypeNVL.IsCached)
         {
             DocTypeNVL.SetCache(e.Object.DocTypeNVL);
         }
         if (!DocStatusNVL.IsCached)
         {
             DocStatusNVL.SetCache(e.Object.DocStatusNVL);
         }
         if (!UserNVL.IsCached)
         {
             UserNVL.SetCache(e.Object.UserNVL);
         }
         callback(o, e);
     });
 }
 /// <summary>
 /// Factory method. Asynchronously creates a new <see cref="DocEditGetter"/> unit of objects.
 /// </summary>
 /// <param name="callback">The completion callback method.</param>
 public static void NewDocEditGetter(EventHandler <DataPortalResult <DocEditGetter> > callback)
 {
     // DataPortal_Fetch is used as ReadOnlyBase<T> doesn't allow the use of DataPortal_Create.
     DataPortal.BeginFetch <DocEditGetter>(new Criteria1(true, new int()), (o, e) =>
     {
         if (e.Error != null)
         {
             throw e.Error;
         }
         if (!DocClassNVL.IsCached)
         {
             DocClassNVL.SetCache(e.Object.DocClassNVL);
         }
         if (!DocTypeNVL.IsCached)
         {
             DocTypeNVL.SetCache(e.Object.DocTypeNVL);
         }
         if (!DocStatusNVL.IsCached)
         {
             DocStatusNVL.SetCache(e.Object.DocStatusNVL);
         }
         if (!UserNVL.IsCached)
         {
             UserNVL.SetCache(e.Object.UserNVL);
         }
         callback(o, e);
     });
 }