public FileIOStatistic ReadFileIOStatistic(FileIOStatistic model) { return(Session.QueryOver <FileIOStatistic>() .Where(m => (m.UserId == model.UserId) && (m.FileId == model.FileId) && (m.FileIOStatisticSequence == model.FileIOStatisticSequence)) .SingleOrDefault <FileIOStatistic>()); }
public FileIOStatistic CreateFileIOStatistic(FileIOStatistic model) { FileIOStatistic rtn; Session.Clear(); rtn = Session.Save(model) as FileIOStatistic; Session.Flush(); return(rtn); }
public void DeleteFileIOStatistic(FileIOStatistic model) { Session.Clear(); Session.Delete(model); Session.Flush(); }
public void UpdateFileIOStatistic(FileIOStatistic model) { Session.Clear(); Session.Update(model); Session.Flush(); }