public InsuranceCompany GetObjectByKey(object keypair) { if (this.Contains(GetKey(keypair)) == false) { return(null); } InsuranceCompany ob = this[GetKey(keypair)]; return((InsuranceCompany)ob); }
public InsuranceCompany GetObjectByKey(long k_InsCoID) { if (this.Contains(GetKey(k_InsCoID)) == false) { return(null); } InsuranceCompany ob = this[GetKey(k_InsCoID)]; return((InsuranceCompany)ob); }
public InsuranceCompany GetObjectByKey(KeyValuePair <string, long> keypair) { if (this.Contains(keypair) == false) { return(null); } InsuranceCompany ob = this[keypair]; return((InsuranceCompany)ob); }
public bool ChangeItem(KeyValuePair <string, long> keypair, InsuranceCompany item) { InsuranceCompany orig = this.GetObjectByKey(keypair); if (orig != null) { int index = this.IndexOf(orig); this.SetItem(index, item); return(true); } return(false); }
public InsuranceCompany GetObjectByKey(long k_InsCoID, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_InsCoID)) == false) { InsuranceCompany ob = repository.GetQuery <InsuranceCompany>().FirstOrDefault(o => o.InsCoID == k_InsCoID); if (ob != null) { this.Add(ob); } return(ob); } InsuranceCompany obj = this[GetKey(k_InsCoID)]; return((InsuranceCompany)obj); }
public bool DeleteObject(InsuranceCompany item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(InsuranceCompany item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }
protected override KeyValuePair <string, long> GetKeyForItem(InsuranceCompany item) { return(item.Key); }