2

我有以下 Rhino ETL 进程,它默默地失败。该过程执行得很好,但是没有对数据库进行往返,没有抛出异常,也没有插入任何数据。

public class UpdateLeadSources : EtlProcess 
{


    protected override void Initialize()
    {
        Register(new ConventionInputCommandOperation("MoxyVote")
                     {
                         Command = "Select * from dbo.LeadSources"
                     });
        Register(new ConventionOutputCommandOperation("MoxyDataWarehouse")
                     {
                         Command = "Insert into dbo.LeadSources (LeadSourceID, LeadSourceCategoryID, LeadSourceCode, LeadSourceFriendlyName, Description, IsActive, Password, TopEntityID, TopEntityTypeID, CampaignID) Values(@LeadSourceID, @LeadSourceCategoryID, @LeadSourceCode, @LeadSourceFriendlyName, @Description, @IsActive, @Password, @TopEntityID, @TopEntityTypeID, @CampaignID)"
                     });

    }

}
4

1 回答 1

4

rhino etl 将捕获所有异常,记录它们并将它们添加到错误集合中,您可以从 EtlProcess 类访问该集合。 https://github.com/hibernating-rhinos/rhino-etl/blob/master/Rhino.Etl.Core/EtlProcess.cs#L161第161行GetAllErrors()

于 2012-01-09T21:15:14.840 回答