public void Teardown() { #if DEBUG LegacyTimestampBehavior = false; BuiltInTypeHandlerResolver.ResetMappings(); #endif }
public void Setup() { #if DEBUG LegacyTimestampBehavior = true; BuiltInTypeHandlerResolver.ResetMappings(); #else Assert.Ignore( "Legacy DateTime tests rely on the Npgsql.EnableLegacyTimestampBehavior AppContext switch and can only be run in DEBUG builds"); #endif }
public override TypeMappingInfo?GetMappingByDataTypeName(string dataTypeName) => BuiltInTypeHandlerResolver.DoGetMappingByDataTypeName(dataTypeName);
public override string?GetDataTypeNameByValueDependentValue(object value) => BuiltInTypeHandlerResolver.ValueDependentValueToDataTypeName(value);
public override string?GetDataTypeNameByClrType(Type clrType) => BuiltInTypeHandlerResolver.ClrTypeToDataTypeName(clrType);