![](/img/trans.png)
[英]Unquoted spaces using DelimitedClassBuilder with FileHelpers
[英]FileHelpers - DelimitedClassBuilder cannot use it
我正在嘗試使用 FileHelpers 庫調用 ClassBuilder 來創建動態映射,問題是我無法訪問構造函數。 這是我的代碼
using RF.Domain.Interfaces;
using RF.Services.Contracts.Interfaces;
using FileHelpers;
public class SourceParserService : ISourceParserService
{
private readonly IUnitOfWork _unitOfWork;
private readonly IReadWriteRepository<Society> _societyRepository;
public SourceParserService(IUnitOfWork unitOfWork,
IReadWriteRepository<Society> societyRepository)
{
_unitOfWork = unitOfWork;
_societyRepository = societyRepository;
}
public void ParseDefaultSource()
{
var engine = new DelimitedClassBuilder("Customers", ",");
.....
}
任何提示?
我認為你只是缺少:
using FileHelpers.Dynamic;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.