示例#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);