Example #1
0
 public override object Get(DbDataReader rs, int index, ISessionImplementor session)
 {
     byte[] bytes = (byte[])binaryType.Get(rs, index, session);
     if (bytes == null)
     {
         return(null);
     }
     else
     {
         return(FromBytes(bytes));
     }
 }
Example #2
0
 public override object Get(IDataReader rs, int index)
 {
     byte[] bytes = (byte[])binaryType.Get(rs, index);
     if (bytes == null)
     {
         return(null);
     }
     else
     {
         return(FromBytes(bytes));
     }
 }