Пример #1
0
 internal void delete(NotificationModel item)
 {
     NotificationMapper.GetDatabase().Delete(item);
 }
Пример #2
0
 internal void update(NotificationModel item)
 {
     NotificationMapper.GetDatabase().Update(item);
 }
Пример #3
0
 public void Add(NotificationModel item)
 {
     NotificationMapper.GetDatabase().Insert(item);
 }
Пример #4
0
 public NotificationModel GetById(string id)
 {
     return(NotificationMapper.GetDatabase().SingleOrDefault <NotificationModel>("WHERE Id=@0", id));
 }
Пример #5
0
 internal IList <NotificationModel> GetByTarget(string Target)
 {
     return(NotificationMapper.GetDatabase().Query <NotificationModel>("Select * from Items Where Target=@0", Target).ToList());
 }
Пример #6
0
 internal IList <NotificationModel> Get()
 {
     return(NotificationMapper.GetDatabase().Query <NotificationModel>("Select * from Notifications").ToList());
 }