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