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