コード例 #1
0
        public HosFeeTransDetails GetObjectByKey(object keypair)
        {
            if (this.Contains(GetKey(keypair)) == false)
            {
                return(null);
            }
            HosFeeTransDetails ob = this[GetKey(keypair)];

            return((HosFeeTransDetails)ob);
        }
コード例 #2
0
        public HosFeeTransDetails GetObjectByKey(long k_HosFeeTransDtlID)
        {
            if (this.Contains(GetKey(k_HosFeeTransDtlID)) == false)
            {
                return(null);
            }
            HosFeeTransDetails ob = this[GetKey(k_HosFeeTransDtlID)];

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

            return((HosFeeTransDetails)ob);
        }
コード例 #4
0
        public bool ChangeItem(KeyValuePair <string, long> keypair, HosFeeTransDetails item)
        {
            HosFeeTransDetails orig = this.GetObjectByKey(keypair);

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

                return(true);
            }

            return(false);
        }
コード例 #5
0
        public HosFeeTransDetails GetObjectByKey(long k_HosFeeTransDtlID, LV.Core.DAL.Base.IRepository repository)
        {
            if (this.Contains(GetKey(k_HosFeeTransDtlID)) == false)
            {
                HosFeeTransDetails ob = repository.GetQuery <HosFeeTransDetails>().FirstOrDefault(o => o.HosFeeTransDtlID == k_HosFeeTransDtlID);
                if (ob != null)
                {
                    this.Add(ob);
                }
                return(ob);
            }
            HosFeeTransDetails obj = this[GetKey(k_HosFeeTransDtlID)];

            return((HosFeeTransDetails)obj);
        }
コード例 #6
0
        public bool DeleteObject(HosFeeTransDetails item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Update(item);

            return(true);
        }
コード例 #7
0
        public bool AddObject(HosFeeTransDetails item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Add(item);

            return(true);
        }
コード例 #8
0
 protected override KeyValuePair <string, long> GetKeyForItem(HosFeeTransDetails item)
 {
     return(item.Key);
 }