private void UpdateUserPriority(IPersistenceManager pm, DA.UserPriority up) { pm.UseTransaction(() => { up.DateEnqueued = DateTime.Now; pm.SubmitChanges(); }); }
public static void ToEntity(DT.UserPriority source, DB.UserPriority target) { if ((source != null) && (target != null)) { target.UserId = source.Id; target.DateEnqueued = source.DateEnqueued; } }
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; }
public static DB.UserPriority ToEntity(DT.UserPriority source) { if (source == null) { return(null); } var entity = new DB.UserPriority(); ToEntity(source, entity); return(entity); }
public static DA.UserPriority ToEntity(this DT.UserPriority source) { if (source == null) { return(null); } var result = new DA.UserPriority(); source.CopyToEntity(result); return(result); }
public static DT.UserPriority ToDto(DB.UserPriority source) { if (source == null) { return(null); } return(new DT.UserPriority() { Id = source.UserId, DateEnqueued = source.DateEnqueued }); }
public static DB.UserPriority ToEntity(DT.UserPriority source) { if (source == null) return null; var entity = new DB.UserPriority(); ToEntity(source, entity); return entity; }
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);