/// <summary> /// Initializes a new instance of the <see cref="DbAccessBase"/> class. /// </summary> /// <param name="dbProviderFactory"> /// The db provider factory. /// </param> /// <param name="providerName"> /// The provider name. /// </param> /// <param name="connectionString"> /// The connection String. /// </param> protected DbAccessBase( [NotNull] Func <string, DbProviderFactory> dbProviderFactory, IProfileQuery profiler, IDbInformation information) { this.Information = information; this._profiler = profiler; this.DbProviderFactory = dbProviderFactory(information.ProviderName); }
public ExportQuery(IProfileQuery profileQuery, IPhotoQuery photoQuery) { Ensure.Any.IsNotNull(profileQuery, nameof(profileQuery)); Ensure.Any.IsNotNull(photoQuery, nameof(photoQuery)); _profileQuery = profileQuery; _photoQuery = photoQuery; }
public ProfileController(IProfileQuery query, IProfileCommand command) { Ensure.Any.IsNotNull(query, nameof(query)); Ensure.Any.IsNotNull(command, nameof(command)); _query = query; _command = command; }
public AccountProfileController(IProfileQuery profileQuery, IProfileCommand profileCommand, IAccountCommand accountCommand) { Ensure.Any.IsNotNull(profileQuery, nameof(profileQuery)); Ensure.Any.IsNotNull(profileCommand, nameof(profileCommand)); Ensure.Any.IsNotNull(accountCommand, nameof(accountCommand)); _profileQuery = profileQuery; _profileCommand = profileCommand; _accountCommand = accountCommand; }
/// <summary> /// Initializes a new instance of the <see cref="MsSqlDbAccess"/> class. /// </summary> /// <param name="dbProviderFactory"> /// The db provider factory. /// </param> /// <param name="profiler"> /// The profiler. /// </param> public MsSqlDbAccess([NotNull] Func <string, DbProviderFactory> dbProviderFactory, IProfileQuery profiler) : base(dbProviderFactory, profiler, new MsSqlDbInformation()) { }
/// <summary> /// Initializes a new instance of the <see cref="MsSqlDbAccess"/> class. /// </summary> /// <param name="dbProviderFactory"> /// The db provider factory. /// </param> public MsSqlDbAccess([NotNull] Func<string, DbProviderFactory> dbProviderFactory, IProfileQuery profiler) : base(dbProviderFactory, profiler, new MsSqlDbInformation()) { }