PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Rhino.Etl.Tests/UsingDAL/SaveToDal.cs

http://github.com/ayende/rhino-etl
C# | 18 lines | 17 code | 1 blank | 0 comment | 0 complexity | 9a073ffc43eba670273c42860193b047 MD5 | raw file
 1namespace Rhino.Etl.Tests.UsingDAL
 2{
 3    using System.Collections.Generic;
 4    using Core;
 5    using Rhino.Etl.Core.Operations;
 6
 7    public class SaveToDal : AbstractOperation
 8    {
 9        public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
10        {
11            foreach (Row row in rows)
12            {
13                MySimpleDal.Save(row.ToObject<User>());
14            }
15            yield break;
16        }
17    }
18}