Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="fullPathToDb">Full path to audit database</param>
 public AuditRepository(string fullPathToDb)
 {
     dbRepository = new DalDbLiteRepository(new DbLiteFileHelper(fullPathToDb));
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor. Database in memmory.
 /// </summary>
 /// <param name="logManager"></param>
 public DalRepository(ILogManager logManager)
 {
     Log          = logManager.GetLog(classCode);
     dbRepository = new DalDbLiteRepository(new DbLiteMemmoryHelper());
 }
Esempio n. 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public AuditRepository()
 {
     dbRepository = new DalDbLiteRepository(new DbLiteMemmoryHelper());
 }