Example #1
0
        public ICD10 GetObjectByKey(object keypair)
        {
            if (this.Contains(GetKey(keypair)) == false)
            {
                return(null);
            }
            ICD10 ob = this[GetKey(keypair)];

            return((ICD10)ob);
        }
Example #2
0
        public ICD10 GetObjectByKey(long k_ICDID)
        {
            if (this.Contains(GetKey(k_ICDID)) == false)
            {
                return(null);
            }
            ICD10 ob = this[GetKey(k_ICDID)];

            return((ICD10)ob);
        }
Example #3
0
        public ICD10 GetObjectByKey(KeyValuePair <string, long> keypair)
        {
            if (this.Contains(keypair) == false)
            {
                return(null);
            }
            ICD10 ob = this[keypair];

            return((ICD10)ob);
        }
Example #4
0
        public bool ChangeItem(KeyValuePair <string, long> keypair, ICD10 item)
        {
            ICD10 orig = this.GetObjectByKey(keypair);

            if (orig != null)
            {
                int index = this.IndexOf(orig);
                this.SetItem(index, item);

                return(true);
            }

            return(false);
        }
Example #5
0
        public ICD10 GetObjectByKey(long k_ICDID, LV.Core.DAL.Base.IRepository repository)
        {
            if (this.Contains(GetKey(k_ICDID)) == false)
            {
                ICD10 ob = repository.GetQuery <ICD10>().FirstOrDefault(o => o.ICDID == k_ICDID);
                if (ob != null)
                {
                    this.Add(ob);
                }
                return(ob);
            }
            ICD10 obj = this[GetKey(k_ICDID)];

            return((ICD10)obj);
        }
Example #6
0
        public bool DeleteObject(ICD10 item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Update(item);

            return(true);
        }
Example #7
0
        public bool AddObject(ICD10 item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Add(item);

            return(true);
        }
Example #8
0
 protected override KeyValuePair <string, long> GetKeyForItem(ICD10 item)
 {
     return(item.Key);
 }