PageRenderTime 41ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 22ms app.codeStats 1ms

/Rhino.Etl.Tests/Fibonacci/Bulk/FibonacciBulkInsertBase.cs

http://github.com/ayende/rhino-etl
C# | 26 lines | 20 code | 3 blank | 3 comment | 0 complexity | 56e696ed25036f5f45dda2c3115d959b MD5 | raw file
 1using System.Configuration;
 2using Rhino.Etl.Core.Operations;
 3
 4namespace Rhino.Etl.Tests.Fibonacci.Bulk
 5{
 6    public abstract class FibonacciBulkInsertBase : SqlBulkInsertOperation
 7    {
 8        protected FibonacciBulkInsertBase(string connectionString)
 9            : base(connectionString, "Fibonacci")
10        {
11        }
12
13        protected FibonacciBulkInsertBase(ConnectionStringSettings connectionStringSettings)
14            : base(connectionStringSettings, "Fibonacci")
15        {
16        }
17
18        /// <summary>
19        /// Prepares the schema of the target table
20        /// </summary>
21        protected override void PrepareSchema()
22        {
23            Schema["id"] = typeof (int);
24        }
25    }
26}