예제 #1
0
    public void Teardown()
    {
#if DEBUG
        LegacyTimestampBehavior = false;
        BuiltInTypeHandlerResolver.ResetMappings();
#endif
    }
예제 #2
0
    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
    }
예제 #3
0
 public override TypeMappingInfo?GetMappingByDataTypeName(string dataTypeName)
 => BuiltInTypeHandlerResolver.DoGetMappingByDataTypeName(dataTypeName);
예제 #4
0
 public override string?GetDataTypeNameByValueDependentValue(object value)
 => BuiltInTypeHandlerResolver.ValueDependentValueToDataTypeName(value);
예제 #5
0
 public override string?GetDataTypeNameByClrType(Type clrType)
 => BuiltInTypeHandlerResolver.ClrTypeToDataTypeName(clrType);