public HealthCareQueue GetObjectByKey(object keypair)
        {
            if (this.Contains(GetKey(keypair)) == false)
            {
                return(null);
            }
            HealthCareQueue ob = this[GetKey(keypair)];

            return((HealthCareQueue)ob);
        }
        public HealthCareQueue GetObjectByKey(long k_HCQueueID)
        {
            if (this.Contains(GetKey(k_HCQueueID)) == false)
            {
                return(null);
            }
            HealthCareQueue ob = this[GetKey(k_HCQueueID)];

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

            return((HealthCareQueue)ob);
        }
        public bool ChangeItem(KeyValuePair <string, long> keypair, HealthCareQueue item)
        {
            HealthCareQueue orig = this.GetObjectByKey(keypair);

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

                return(true);
            }

            return(false);
        }
        public HealthCareQueue GetObjectByKey(long k_HCQueueID, LV.Core.DAL.Base.IRepository repository)
        {
            if (this.Contains(GetKey(k_HCQueueID)) == false)
            {
                HealthCareQueue ob = repository.GetQuery <HealthCareQueue>().FirstOrDefault(o => o.HCQueueID == k_HCQueueID);
                if (ob != null)
                {
                    this.Add(ob);
                }
                return(ob);
            }
            HealthCareQueue obj = this[GetKey(k_HCQueueID)];

            return((HealthCareQueue)obj);
        }
        public bool DeleteObject(HealthCareQueue item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Update(item);

            return(true);
        }
        public bool AddObject(HealthCareQueue item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Add(item);

            return(true);
        }
 protected override KeyValuePair <string, long> GetKeyForItem(HealthCareQueue item)
 {
     return(item.Key);
 }