public Repository(string connectionString, IEmailNotificationMapper mapperEmailNotification) { this._connection = new MySqlConnection(connectionString); this._mapperEmailNotification = mapperEmailNotification; this._entityName = typeof(TEntity).Name; }
public EmailNotificationService(string connectionString) { this._connectionString = connectionString; this._mapper = EmailNotificationMapper.GetMapper(typeof(TModel)); }