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

            var entity = new rolcuotadetalle();

            entity.v_RolCuotaDetalleId = dto.v_RolCuotaDetalleId;
            entity.v_IdProducto        = dto.v_IdProducto;
            entity.v_ProductoNombre    = dto.v_ProductoNombre;
            entity.v_RolCuotaId        = dto.v_RolCuotaId;
            entity.i_Cuota             = dto.i_Cuota;
            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);
        }