/// <summary>
        /// Converts this instance of <see cref="multimediafile"/> to an instance of <see cref="multimediafileDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="multimediafile"/> to convert.</param>
        public static multimediafileDto ToDTO(this multimediafile entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new multimediafileDto();

            dto.v_MultimediaFileId = entity.v_MultimediaFileId;
            dto.v_PersonId         = entity.v_PersonId;
            dto.v_FileName         = entity.v_FileName;
            dto.b_File             = entity.b_File;
            dto.b_ThumbnailFile    = entity.b_ThumbnailFile;
            dto.v_Comment          = entity.v_Comment;
            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;
            dto.v_ComentaryUpdate  = entity.v_ComentaryUpdate;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="multimediafileDto"/> to an instance of <see cref="multimediafile"/>.
        /// </summary>
        /// <param name="dto"><see cref="multimediafileDto"/> to convert.</param>
        public static multimediafile ToEntity(this multimediafileDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new multimediafile();

            entity.v_MultimediaFileId = dto.v_MultimediaFileId;
            entity.v_PersonId         = dto.v_PersonId;
            entity.v_FileName         = dto.v_FileName;
            entity.b_File             = dto.b_File;
            entity.b_ThumbnailFile    = dto.b_ThumbnailFile;
            entity.v_Comment          = dto.v_Comment;
            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;
            entity.v_ComentaryUpdate  = dto.v_ComentaryUpdate;

            dto.OnEntity(entity);

            return(entity);
        }
 public servicemultimediaDto(String v_ServiceMultimediaId, String v_ServiceId, String v_MultimediaFileId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, serviceDto service, multimediafileDto multimediafile)
 {
     this.v_ServiceMultimediaId = v_ServiceMultimediaId;
     this.v_ServiceId           = v_ServiceId;
     this.v_MultimediaFileId    = v_MultimediaFileId;
     this.i_IsDeleted           = i_IsDeleted;
     this.i_InsertUserId        = i_InsertUserId;
     this.d_InsertDate          = d_InsertDate;
     this.i_UpdateUserId        = i_UpdateUserId;
     this.d_UpdateDate          = d_UpdateDate;
     this.service        = service;
     this.multimediafile = multimediafile;
 }
 public servicecomponentfieldvaluesmultimediaDto(String v_ServiceComponentFieldValuesMultimediaId, String v_MultimediaFileId, String v_ServiceComponentFieldValuesId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, servicecomponentfieldvaluesDto servicecomponentfieldvalues, multimediafileDto multimediafile)
 {
     this.v_ServiceComponentFieldValuesMultimediaId = v_ServiceComponentFieldValuesMultimediaId;
     this.v_MultimediaFileId = v_MultimediaFileId;
     this.v_ServiceComponentFieldValuesId = v_ServiceComponentFieldValuesId;
     this.i_IsDeleted    = i_IsDeleted;
     this.i_InsertUserId = i_InsertUserId;
     this.d_InsertDate   = d_InsertDate;
     this.i_UpdateUserId = i_UpdateUserId;
     this.d_UpdateDate   = d_UpdateDate;
     this.servicecomponentfieldvalues = servicecomponentfieldvalues;
     this.multimediafile = multimediafile;
 }
 public servicecomponentmultimediaDto(String v_ServiceComponentMultimediaId, String v_ServiceComponentId, String v_MultimediaFileId, String v_Comment, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, servicecomponentDto servicecomponent, multimediafileDto multimediafile)
 {
     this.v_ServiceComponentMultimediaId = v_ServiceComponentMultimediaId;
     this.v_ServiceComponentId           = v_ServiceComponentId;
     this.v_MultimediaFileId             = v_MultimediaFileId;
     this.v_Comment        = v_Comment;
     this.i_IsDeleted      = i_IsDeleted;
     this.i_InsertUserId   = i_InsertUserId;
     this.d_InsertDate     = d_InsertDate;
     this.i_UpdateUserId   = i_UpdateUserId;
     this.d_UpdateDate     = d_UpdateDate;
     this.servicecomponent = servicecomponent;
     this.multimediafile   = multimediafile;
 }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="multimediafile"/> converted from <see cref="multimediafileDto"/>.</param>
 static partial void OnEntity(this multimediafileDto dto, multimediafile entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="multimediafileDto"/> converted from <see cref="multimediafile"/>.</param>
 static partial void OnDTO(this multimediafile entity, multimediafileDto dto);