Beispiel #1
0
 public object CreateInstance(IDataReader reader)
 {
     try
     {
         return(this._dbValueReader.GetValue(reader, _readerOrdinal));
     }
     catch (Exception ex)
     {
         throw new ChloeException(ComplexObjectActivator.AppendErrorMsg(reader, this._readerOrdinal, ex), ex);
     }
 }
 public override async ObjectResultTask CreateInstance(IDataReader reader, bool @async)
 {
     try
     {
         return(this._dbValueReader.GetValue(reader, this._readerOrdinal));
     }
     catch (Exception ex)
     {
         throw new ChloeException(ComplexObjectActivator.AppendErrorMsg(reader, this._readerOrdinal, ex), ex);
     }
 }