public override string ToString(object value) { if (IsGuid) { return(OracleGuidHelper.ConvertToGuid((byte[])value).ToString()); } return(Convert.ToBase64String((byte[])value)); }
public void TestOraReader_When_Guid() { TestReader_When_Guid(); var val = Commands.ExecuteScalar(string.Format("select test_col from {0}", TestTable)); Guid guid = OracleGuidHelper.ConvertToGuid((byte[])val); guid.ToString().Should().Be(TestGuid); }