Пример #1
0
 public Repository(string connectionString, IEmailNotificationMapper mapperEmailNotification)
 {
     this._connection = new MySqlConnection(connectionString);
     this._mapperEmailNotification = mapperEmailNotification;
     this._entityName = typeof(TEntity).Name;
 }
Пример #2
0
 public EmailNotificationService(string connectionString)
 {
     this._connectionString = connectionString;
     this._mapper           = EmailNotificationMapper.GetMapper(typeof(TModel));
 }