public ServerLog GetObjectByKey(long k_LogEntryID, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_LogEntryID)) == false) { ServerLog ob = repository.GetQuery <ServerLog>().FirstOrDefault(o => o.LogEntryID == k_LogEntryID); if (ob != null) { this.Add(ob); } return(ob); } ServerLog obj = this[GetKey(k_LogEntryID)]; return((ServerLog)obj); }
protected override KeyValuePair <string, long> GetKeyForItem(ServerLog item) { return(item.Key); }
public bool DeleteObject(ServerLog item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(ServerLog item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }