/// <summary> /// Constructor. Database in file. /// </summary> /// <param name="logManager">Log manager</param> /// <param name="fullPathToDb">Full path tu database.</param> public DalRepository(ILogManager logManager, string fullPathToDb) { Log = logManager.GetLog(classCode); dbRepository = new DalDbLiteRepository(new DbLiteFileHelper(fullPathToDb)); }
/// <summary> /// Constructor /// </summary> /// <param name="fullPathToDb">Full path to audit database</param> public AuditRepository(string fullPathToDb) { dbRepository = new DalDbLiteRepository(new DbLiteFileHelper(fullPathToDb)); }
/// <summary> /// Constructor. Database in memmory. /// </summary> /// <param name="logManager"></param> public DalRepository(ILogManager logManager) { Log = logManager.GetLog(classCode); dbRepository = new DalDbLiteRepository(new DbLiteMemmoryHelper()); }
/// <summary> /// Constructor /// </summary> public AuditRepository() { dbRepository = new DalDbLiteRepository(new DbLiteMemmoryHelper()); }