Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
        public ExportQuery(IProfileQuery profileQuery, IPhotoQuery photoQuery)
        {
            Ensure.Any.IsNotNull(profileQuery, nameof(profileQuery));
            Ensure.Any.IsNotNull(photoQuery, nameof(photoQuery));

            _profileQuery = profileQuery;
            _photoQuery   = photoQuery;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 5
0
 /// <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())
 {
 }
Ejemplo n.º 6
0
 /// <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())
 {
 }