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