protected Import(ISession session, CultureInfo cultureInfo, IImportLog log, TTable table, RoleType keyRoleType, Func <TRecord, string> keyFunction) : base(session, cultureInfo, log) { this.table = table; this.keyRoleType = keyRoleType; this.keyFunction = keyFunction; this.recordByObject = new Dictionary <TObject, TRecord>(); var objectsWithExternalPrimaryKey = this.Session.Extent <TObject>(); objectsWithExternalPrimaryKey.Filter.AddExists(keyRoleType); this.objectsByExternalPrimaryKey = objectsWithExternalPrimaryKey.ToDictionary(item => (string)item.Strategy.GetUnitRole(keyRoleType), item => item); }
protected Import(ISession session, CultureInfo cultureInfo, IImportLog log) { this.session = session; this.log = log; this.cultureInfo = cultureInfo; }
public ConsoleImportLog(IImportLog chainedLog) { this.chainedLog = chainedLog; }
public ConsoleImportLog(IImportLog chainedLog) { this.chainedLog = chainedLog; }