/// <summary> /// Creates a new instance of this converter. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-value-converters">EF Core value converters</see> for more information and examples. /// </remarks> /// <param name="mappingHints"> /// Hints that can be used by the <see cref="ITypeMappingSource" /> to create data types with appropriate /// facets for the converted data. /// </param> public GuidToStringConverter(ConverterMappingHints?mappingHints) : base( ToString(), ToGuid(), DefaultHints.With(mappingHints)) { }
/// <summary> /// Creates a new instance of this converter. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-value-converters">EF Core value converters</see> for more information and examples. /// </remarks> /// <param name="mappingHints"> /// Hints that can be used by the <see cref="ITypeMappingSource" /> to create data types with appropriate /// facets for the converted data. /// </param> public StringToDateTimeConverter(ConverterMappingHints?mappingHints) : base( ToDateTime(), ToString(), DefaultHints.With(mappingHints)) { }
/// <summary> /// Creates a new instance of this converter. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-value-converters">EF Core value converters</see> for more information and examples. /// </remarks> /// <param name="mappingHints"> /// Hints that can be used by the <see cref="ITypeMappingSource" /> to create data types with appropriate /// facets for the converted data. /// </param> public StringToNumberConverter(ConverterMappingHints?mappingHints) : base( ToNumber(), ToString(), DefaultHints.With(mappingHints)) { }
/// <summary> /// Creates a new instance of this converter. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-value-converters">EF Core value converters</see> for more information and examples. /// </remarks> /// <param name="mappingHints"> /// Hints that can be used by the <see cref="ITypeMappingSource" /> to create data types with appropriate /// facets for the converted data. /// </param> public DateTimeOffsetToStringConverter(ConverterMappingHints?mappingHints) : base( ToString(), ToDateTimeOffset(), DefaultHints.With(mappingHints)) { }
/// <summary> /// Creates a new instance of this converter. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-value-converters">EF Core value converters</see> for more information and examples. /// </remarks> /// <param name="mappingHints"> /// Hints that can be used by the <see cref="ITypeMappingSource" /> to create data types with appropriate /// facets for the converted data. /// </param> public StringToTimeSpanConverter(ConverterMappingHints?mappingHints) : base( ToTimeSpan(), ToString(), DefaultHints.With(mappingHints)) { }