Example #1
0
        /// <summary>
        /// Completes the child assignment requests ordered by the parent objects.
        /// </summary>
        /// <returns>Returns value to be used by DbContext wrapper function "FillOthers".</returns>
        public bool FillOTO(bool readRemoved = false)
        {
            bool result = false;

            while (OTOReqList.Count() != 0)
            {
                result = true;
                OTOReq otoReq = OTOReqList[0];
                OTOReqList.RemoveAt(0);
                object found = Get(otoReq.target_id);
                otoReq.Fill(found);
            }
            return(result); //returns false if nothing is done, otherwise true.
        }
Example #2
0
 //savechanges çalışırken id'si int olan nesne okunacak, object'in property'sine atanacak.
 public void AddOTOReq(OTOReq otoReq)
 {
     this.OTOReqList.Add(otoReq);
 }