Example #1
0
 public static void ToEntity(DT.UserPriority source, DB.UserPriority target)
 {
     if ((source != null) && (target != null))
     {
         target.UserId       = source.Id;
         target.DateEnqueued = source.DateEnqueued;
     }
 }
Example #2
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;
 }
Example #3
0
        public static DB.UserPriority ToEntity(DT.UserPriority source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.UserPriority(); ToEntity(source, entity);

            return(entity);
        }
Example #4
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);
        }