Пример #1
0
 private void UpdateUserPriority(IPersistenceManager pm, DA.UserPriority up)
 {
     pm.UseTransaction(() => {
         up.DateEnqueued = DateTime.Now;
         pm.SubmitChanges();
     });
 }
Пример #2
0
 public static void ToEntity(DT.UserPriority source, DB.UserPriority target)
 {
     if ((source != null) && (target != null))
     {
         target.UserId       = source.Id;
         target.DateEnqueued = source.DateEnqueued;
     }
 }
Пример #3
0
 public static void CopyToEntity(this DT.UserPriority source, DA.UserPriority target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.UserId       = source.Id;
     target.DateEnqueued = source.DateEnqueued;
 }
Пример #4
0
        public static DB.UserPriority ToEntity(DT.UserPriority source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.UserPriority(); ToEntity(source, entity);

            return(entity);
        }
Пример #5
0
        public static DA.UserPriority ToEntity(this DT.UserPriority source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.UserPriority();

            source.CopyToEntity(result);
            return(result);
        }
Пример #6
0
 public static DT.UserPriority ToDto(DB.UserPriority source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.UserPriority()
     {
         Id = source.UserId, DateEnqueued = source.DateEnqueued
     });
 }
Пример #7
0
 public static DB.UserPriority ToEntity(DT.UserPriority source) {
   if (source == null) return null;
   var entity = new DB.UserPriority(); ToEntity(source, entity);
   return entity;
 }
Пример #8
0
 public static DA.UserPriority ToEntity(this DT.UserPriority source) {
   if (source == null) return null;
   var result = new DA.UserPriority();
   source.CopyToEntity(result);
   return result;
 }
 partial void DeleteUserPriority(UserPriority instance);
 partial void UpdateUserPriority(UserPriority instance);
 partial void InsertUserPriority(UserPriority instance);