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