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