示例#1
0
 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>());
 }
示例#2
0
        public FileIOStatistic CreateFileIOStatistic(FileIOStatistic model)
        {
            FileIOStatistic rtn;

            Session.Clear();
            rtn = Session.Save(model) as FileIOStatistic;
            Session.Flush();

            return(rtn);
        }
示例#3
0
 public void DeleteFileIOStatistic(FileIOStatistic model)
 {
     Session.Clear();
     Session.Delete(model);
     Session.Flush();
 }
示例#4
0
 public void UpdateFileIOStatistic(FileIOStatistic model)
 {
     Session.Clear();
     Session.Update(model);
     Session.Flush();
 }