Exemple #1
0
 /// <summary>
 ///  Office data service constructor
 /// </summary>
 /// <param name="sqlExecutor">Sql Executor, interface for ADO.NET/Dapper access</param>
 public OfficeDataService(ISqlExecutor sqlExecutor)
 {
     _sqlExecutor       = sqlExecutor;
     _loader            = new OfficeDataLoader(sqlExecutor);
     _saver             = new OfficeDataSaver(sqlExecutor);
     _deleter           = new OfficeDataDeleter(sqlExecutor);
     _queryStoreFactory = new QueryStoreFactory();
 }
 /// <summary>
 ///  Office data service constructor
 /// </summary>
 /// <param name="sqlExecutor">Sql Executor, interface for ADO.NET/Dapper access</param>
 public OfficeDataService(ISqlExecutor sqlExecutor) : base(sqlExecutor)
 {
     _mapper  = MapperField.GetMapper();
     _loader  = new OfficeDataLoader(SqlExecutor, _mapper);
     _saver   = new OfficeDataSaver(SqlExecutor, _mapper);
     _deleter = new OfficeDataDeleter(SqlExecutor, _mapper);
     // it is useful for the page count.
     TableName = "OFICINAS";
 }