예제 #1
0
 public static void CopyToEntity(this DT.AssignedProjectResource source, DA.AssignedProjectResource target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.ProjectId  = source.ProjectId;
     target.ResourceId = source.ResourceId;
 }
예제 #2
0
        public static DA.AssignedProjectResource ToEntity(this DT.AssignedProjectResource source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.AssignedProjectResource();

            source.CopyToEntity(result);
            return(result);
        }
예제 #3
0
 public static DT.AssignedProjectResource ToDto(this DA.AssignedProjectResource source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.AssignedProjectResource {
         ProjectId = source.ProjectId,
         ResourceId = source.ResourceId
     });
 }