Exemplo n.º 1
0
 public void ReadToObject(IDataReader reader, object obj)
 {
     //reader -> object prop
     if (SetMethod != null)
     {
         parameters[0] = dynaField.GetData(reader);
         SetMethod.Invoke(obj, parameters);
     }
 }
Exemplo n.º 2
0
 public override bool TryGetMember(GetMemberBinder binder, out object result)
 {
     result = null;
     try
     {
         IDynaField field = _record.FieldDict[binder.Name];
         result = field.GetData(_reader);
     }
     catch (Exception)
     {
     }
     return(true);
 }