TechTalk Genome v4.2

ArrayResultBinder Class

A result binder to return tabular result sets.

For a list of all members of this type, see ArrayResultBinder Members.

System.Object
   ExternalQueryResultBinder
      CompositeResultBinder
         ArrayResultBinder

[Serializable]
[Serializable]
public class ArrayResultBinder : CompositeResultBinder

Example

Returning tabular results:

             ArrayResultBinder binder = new ArrayResultBinder(dd.Schema, 
                new ScalarResultBinder(dataDomain.Schema, typeof(int), 0), 
                new ScalarResultBinder(dataDomain.Schema, typeof(string), 1)); 
            
                IDbCommand cmd = new SqlCommand("SELECT Id, Name FROM Products");  
                    Set<object[]> externalSet = ExternalQuery.Create<object[]>(dataDomain, cmd, binder); 
             

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Orcale 9i Release 2, Oracle 10g Release 2

See Also

ArrayResultBinder Members | TechTalk.Genome Namespace