|
using System;
using System.Data.SqlClient;
namespace DynamicMappingSpike
{
public class ManualBuilder
{
public Person Build(SqlDataReader reader)
{
Person person = new Person();
person.ID = (Guid)reader[0];
person.Name = (string)reader[1];
person.Kids = (int)reader[2];
person.Active = (bool)reader[3];
person.DateOfBirth = (DateTime)reader[4];
return person;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.