Exemplo n.º 1
0
 private void UpdateUserPriority(IPersistenceManager pm, DA.UserPriority up)
 {
     pm.UseTransaction(() => {
         up.DateEnqueued = DateTime.Now;
         pm.SubmitChanges();
     });
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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
     });
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);