private EntityGroupTask CreateTask()
        {
            TypeInfo exactReferencedType;
            var      hasExactTypeBeenGotten = PrefetchHelper.TryGetExactKeyType(Key, Manager, out exactReferencedType);

            if (hasExactTypeBeenGotten != null)
            {
                if (hasExactTypeBeenGotten.Value)
                {
                    Type = exactReferencedType;
                    //FillColumnCollection();
                    needToNotifyOwner = false;
                }
                else
                {
                    needToNotifyOwner = true;
                }
            }
            else
            {
                return(null);
            }
            FillColumnCollection();
            if (!SelectColumnsToBeLoaded())
            {
                return(null);
            }
            Task = new EntityGroupTask(Type, ColumnIndexesToBeLoaded.ToArray(), Manager);
            return(Task);
        }
 public override EntityGroupTask GetTask()
 {
     if (Task == null)
     {
         if (!SelectColumnsToBeLoaded())
         {
             return(null);
         }
         Task = new EntityGroupTask(Type, ColumnIndexesToBeLoaded.ToArray(), Manager);
     }
     return(Task);
 }