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

            var dto = new users_actsDTO();

            dto.id_user_act = entity.id_user_act;
            dto.id_act      = entity.id_act;
            dto.id_user     = entity.id_user;

            entity.OnDTO(dto);

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

            var entity = new users_acts();

            entity.id_user_act = dto.id_user_act;
            entity.id_act      = dto.id_act;
            entity.id_user     = dto.id_user;

            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="users_acts"/> converted from <see cref="users_actsDTO"/>.</param>
 static partial void OnEntity(this users_actsDTO dto, users_acts entity);
Ejemplo n.º 4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="users_actsDTO"/> converted from <see cref="users_acts"/>.</param>
 static partial void OnDTO(this users_acts entity, users_actsDTO dto);