Esempio n. 1
0
 public override string ToString(object value)
 {
     if (IsGuid)
     {
         return(OracleGuidHelper.ConvertToGuid((byte[])value).ToString());
     }
     return(Convert.ToBase64String((byte[])value));
 }
Esempio n. 2
0
        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);
        }