我敢肯定,我在这里遗漏了一些明显的东西。我正在尝试让我的基于 RhinoETL 的示例应用程序与 sql 服务器通信。它只是不会那样做。我正在关注 Paul Barriere 的视频教程。
using Rhino.Etl.Core.Operations;
namespace RhinoETLTest01.Operations
{
class WriteJoinedRecordsToSql : SqlBulkInsertOperation
{
public WriteJoinedRecordsToSql() : base("TestEtl", "dbo.NameAndTitle") {}
protected override void PrepareSchema()
{
Schema["Id"] = typeof(int);
Schema["FullName"] = typeof (string);
Schema["JobTitle"] = typeof (string);
}
}
}
我能够合并来自 2 个文件的数据并将它们写入第三个文本文件。但是,我不能让合并的记录进入一个 sql 表。请问我错过了什么?我的 App.Config 具有正确的连接字符串设置。
谢谢