internal BatchConfiguration(IUnitOfWorkAdapter adap, IDictionary <string, CommandConfiguration> configs) { Select = new BatchCommandConfiguration(adap, adap.SelectCommand, configs["select"]); Insert = new BatchCommandConfiguration(adap, adap.InsertCommand, configs["insert"]); Update = new BatchCommandConfiguration(adap, adap.UpdateCommand, configs["update"]); Delete = new BatchCommandConfiguration(adap, adap.DeleteCommand, configs["delete"]); }
/// <summary> /// Initializes a new instance of the <see cref="TransactionalHandler" /> class. /// </summary> /// <param name="adapter">Used to monitor all transactions.</param> /// <param name="storage">Used to temporarily store domain events until the transaction have been committed.</param> public TransactionalHandler(IUnitOfWorkAdapter adapter, IDomainEventStorage storage) { if (adapter == null) throw new ArgumentNullException("adapter"); if (storage == null) throw new ArgumentNullException("storage"); _storage = storage; adapter.Register(this); }
//private void MapSchema(IUnitOfWorkAdapter adap, DataTable dt) //{ // if (adap.MapTableSchema) // adap.FillSchema(dt, SchemaType.Source); //} private void MapSchema(IUnitOfWorkAdapter adap, DataSet ds) { if (adap.MapTableSchema) { adap.FillSchema(ds, SchemaType.Source); } }
/// <summary> /// Wait until transactions have been completed before events are dispatched. /// </summary> /// <param name="adapter">Adapter used to detect when transactions have been committed/rolled back.</param> /// <returns>this</returns> /// <seealso cref="TransactionalHandler"/> public EventPipelineBuilder WaitOnTransactions(IUnitOfWorkAdapter adapter) { if (adapter == null) { throw new ArgumentNullException("adapter"); } _unitOfWorkAdapter = adapter; return(this); }
/// <summary> /// Initializes a new instance of the <see cref="TransactionalHandler" /> class. /// </summary> /// <param name="adapter">Used to monitor all transactions.</param> /// <param name="storage">Used to temporarily store domain events until the transaction have been committed.</param> public TransactionalHandler(IUnitOfWorkAdapter adapter, IDomainEventStorage storage) { if (adapter == null) { throw new ArgumentNullException("adapter"); } if (storage == null) { throw new ArgumentNullException("storage"); } _storage = storage; adapter.Register(this); }
/// <summary> /// Wait until transactions have been completed before events are dispatched. /// </summary> /// <param name="adapter">Adapter used to detect when transactions have been committed/rolled back.</param> /// <returns>this</returns> /// <seealso cref="TransactionalHandler"/> public EventPipelineBuilder WaitOnTransactions(IUnitOfWorkAdapter adapter) { if (adapter == null) throw new ArgumentNullException("adapter"); _unitOfWorkAdapter = adapter; return this; }
public PropertyImageBll(IUnitOfWork unitOfWorkSqlServer) { this.unitOfWorkSqlServerAdapter = unitOfWorkSqlServer.Create(); }
/// <summary> /// Contructor de la clase /// </summary> /// <param name="unitOfWorkSqlServer"></param> public OwnerBll(IUnitOfWork unitOfWorkSqlServer) { this.unitOfWorkSqlServerAdapter = unitOfWorkSqlServer.Create(); }
internal ExecuteNonQueryResult(IUnitOfWorkAdapter adap) : base(adap) { Start(); }
internal ExecuteScalarResult(IUnitOfWorkAdapter adap) : base(adap) { Start(); }
public ExecuteFillDataSetResult(DataSet ds, IUnitOfWorkAdapter adap, string srcTable = null) : base(adap) { Result = ds; SourceTable = srcTable; Start(); }
public ExecuteFillDataTableResult(DataTable dt, IUnitOfWorkAdapter adap) : base(adap) { _adap = adap; Result = dt; Start(); }
internal ExecuteResult(IUnitOfWorkAdapter adap) { Adapter = adap; }
internal BatchCommandConfiguration(IUnitOfWorkAdapter adap, DbCommand command, CommandConfiguration config) { _adap = adap; _command = command; _config = config; }