Ejemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="rolenodeprofile"/> to an instance of <see cref="rolenodeprofileDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="rolenodeprofile"/> to convert.</param>
        public static rolenodeprofileDto ToDTO(this rolenodeprofile entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new rolenodeprofileDto();

            dto.i_NodeId = entity.i_NodeId;
            dto.i_RoleId = entity.i_RoleId;
            dto.i_ApplicationHierarchyId = entity.i_ApplicationHierarchyId;
            dto.i_IsDeleted    = entity.i_IsDeleted;
            dto.i_InsertUserId = entity.i_InsertUserId;
            dto.d_InsertDate   = entity.d_InsertDate;
            dto.i_UpdateUserId = entity.i_UpdateUserId;
            dto.d_UpdateDate   = entity.d_UpdateDate;

            entity.OnDTO(dto);

            return(dto);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="rolenodeprofileDto"/> to an instance of <see cref="rolenodeprofile"/>.
        /// </summary>
        /// <param name="dto"><see cref="rolenodeprofileDto"/> to convert.</param>
        public static rolenodeprofile ToEntity(this rolenodeprofileDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new rolenodeprofile();

            entity.i_NodeId = dto.i_NodeId;
            entity.i_RoleId = dto.i_RoleId;
            entity.i_ApplicationHierarchyId = dto.i_ApplicationHierarchyId;
            entity.i_IsDeleted    = dto.i_IsDeleted;
            entity.i_InsertUserId = dto.i_InsertUserId;
            entity.d_InsertDate   = dto.d_InsertDate;
            entity.i_UpdateUserId = dto.i_UpdateUserId;
            entity.d_UpdateDate   = dto.d_UpdateDate;

            dto.OnEntity(entity);

            return(entity);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="rolenodeprofile"/> converted from <see cref="rolenodeprofileDto"/>.</param>
 static partial void OnEntity(this rolenodeprofileDto dto, rolenodeprofile entity);
Ejemplo n.º 4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="rolenodeprofileDto"/> converted from <see cref="rolenodeprofile"/>.</param>
 static partial void OnDTO(this rolenodeprofile entity, rolenodeprofileDto dto);