Many sample codes on RhinoETL talk about loading from csv files and insert into database. How to perform a read from SQL Server database and output its rows to console ? Do you have a sample code to perform simple dbread and batch read ?
The author's blog showed some sample code, but it appears to be incomplete, or I am missing something.
My non-working code
public class ReadBuildInfos : ConventionInputCommandOperation
{
public ReadBuildInfos(ConnectionStringSettings csSettings) : base(csSettings)
{
Command = "SELECT Key, Value FROM dbo.BuildInfos WITH (NOLOCK);";
}
public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
{
foreach (Row row in rows)
{
yield return row;
}
}
}