Пример #1
0
        public PatientAddressHistory GetObjectByKey(object keypair)
        {
            if (this.Contains(GetKey(keypair)) == false)
            {
                return(null);
            }
            PatientAddressHistory ob = this[GetKey(keypair)];

            return((PatientAddressHistory)ob);
        }
Пример #2
0
        public PatientAddressHistory GetObjectByKey(long k_PtAddHisID, long k_PtID, DateTime k_ModifiedDate)
        {
            if (this.Contains(GetKey(k_PtAddHisID, k_PtID, k_ModifiedDate)) == false)
            {
                return(null);
            }
            PatientAddressHistory ob = this[GetKey(k_PtAddHisID, k_PtID, k_ModifiedDate)];

            return((PatientAddressHistory)ob);
        }
Пример #3
0
        public PatientAddressHistory GetObjectByKey(KeyValuePair <KeyValuePair <KeyValuePair <string, long>, KeyValuePair <string, long> >, KeyValuePair <string, DateTime> > keypair)
        {
            if (this.Contains(keypair) == false)
            {
                return(null);
            }
            PatientAddressHistory ob = this[keypair];

            return((PatientAddressHistory)ob);
        }
Пример #4
0
        public bool ChangeItem(KeyValuePair <KeyValuePair <KeyValuePair <string, long>, KeyValuePair <string, long> >, KeyValuePair <string, DateTime> > keypair, PatientAddressHistory item)
        {
            PatientAddressHistory orig = this.GetObjectByKey(keypair);

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

                return(true);
            }

            return(false);
        }
Пример #5
0
        public PatientAddressHistory GetObjectByKey(long k_PtAddHisID, long k_PtID, DateTime k_ModifiedDate, LV.Core.DAL.Base.IRepository repository)
        {
            if (this.Contains(GetKey(k_PtAddHisID, k_PtID, k_ModifiedDate)) == false)
            {
                PatientAddressHistory ob = repository.GetQuery <PatientAddressHistory>().FirstOrDefault(o => o.PtAddHisID == k_PtAddHisID && o.PtID == k_PtID && o.ModifiedDate == k_ModifiedDate);
                if (ob != null)
                {
                    this.Add(ob);
                }
                return(ob);
            }
            PatientAddressHistory obj = this[GetKey(k_PtAddHisID, k_PtID, k_ModifiedDate)];

            return((PatientAddressHistory)obj);
        }
Пример #6
0
        public bool DeleteObject(PatientAddressHistory item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Update(item);

            return(true);
        }
Пример #7
0
        public bool AddObject(PatientAddressHistory item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Add(item);

            return(true);
        }
Пример #8
0
 protected override KeyValuePair <KeyValuePair <KeyValuePair <string, long>, KeyValuePair <string, long> >, KeyValuePair <string, DateTime> > GetKeyForItem(PatientAddressHistory item)
 {
     return(item.Key);
 }