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