public ResultRecord Read(IDataResults reader) { return(reader .AsEnumerable <ResultRecord>(b => b .For <ResultRecord>(c => c.UseFactoryMethod(() => null)) ) .FirstOrDefault()); }
public TestObject Read(IDataResults result) { var obj1 = result.AsEnumerable <TestObject>().First(); var obj2 = result.GetNextEnumerable <TestObject>().First(); obj1.TestString = obj2.TestString; return(obj1); }
public IEnumerable <TestObjectTwoConstructors> Read(IDataResults result) { var constructor = typeof(TestObjectTwoConstructors).GetConstructor(new[] { typeof(int), typeof(string) }); return(result .AsEnumerable <TestObjectTwoConstructors>(b => b .For <TestObjectTwoConstructors>(c => c.UseConstructor(constructor)) ) .ToList()); }
public IReadOnlyList <TestNumber> Read(IDataResults result) { return(result .AsEnumerable <TestNumber>(b => b .For <TestNumber>(c => c .UseType <TestSmallNumber>() .UseSubtype <TestBigNumber>(r => r.GetInt32(0) > 3) ) ) .ToList()); }
public Result Read(IDataResults result) { var results = result.AsEnumerable <string>(); var firstResult = results.First(); var paramValue = result.GetOutputParameter <string>("value"); return(new Result { OutputParameterValue = paramValue, ResultSetValue = firstResult }); }
public T Read(IDataResults result) { return(result.AsEnumerable <T>().FirstOrDefault()); }
public ProductGroup Read(IDataResults result) { var productGroup = result.AsEnumerable <ProductGroup>().Single(); return(productGroup); }
public string[] Read(IDataResults result) { return(result.AsEnumerable <string[]>().FirstOrDefault()); }
public TestObject1 Read(IDataResults result) { return(result.AsEnumerable <TestObject1>().FirstOrDefault()); }
public string Read(IDataResults result) { return(result.AsEnumerable <string>().First()); }
public List <int> Read(IDataResults result) { return(result.AsEnumerable <int>().ToList()); }
public object[] Read(IDataResults result) { return(result.AsEnumerable <object[]>().FirstOrDefault()); }
public IReadOnlyList <JaccardMatch> Read(IDataResults result) { return(result.AsEnumerable <JaccardMatch>().ToList()); }
public IReadOnlyList <TfIdfResult> Read(IDataResults result) { return(result.AsEnumerable <TfIdfResult>().ToList()); }
public QueryValues Read(IDataResults result) { return(result.AsEnumerable <QueryValues>().Single()); }