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