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