/// <summary> /// Initializes a new instance of the <see cref="DefaultModelBuilder"/> class. /// </summary> /// <param name="modelStore">The model store.</param> public DefaultModelBuilder(IModelStore modelStore) { Contract.Require.That(modelStore, Is.Not.Null).When("retrieving argument modelStore in DefaultModelBuilder constructor"); this.modelStore = modelStore; inlineParemeterMapBuilder = new InlineParemeterMapBuilder(modelStore); waitResultPropertyResolution = WaitResultPropertyResolution; waitDiscriminatorResolution = WaitDiscriminatorResolution; }
/// <summary> /// Initializes a new instance of the <see cref="ExternalSql"/> class. /// </summary> /// <param name="modelStore">The model store.</param> /// <param name="statement">The statement.</param> /// <param name="commandText">The command text.</param> public ExternalSql( IModelStore modelStore, IStatement statement, string commandText) { Contract.Require.That(modelStore, Is.Not.Null).When("retrieving argument modelStore in ExternalSql constructor"); Contract.Require.That(statement, Is.Not.Null).When("retrieving argument statement in ExternalSql constructor"); this.statement = statement; this.commandText = commandText; dataExchangeFactory = modelStore.DataExchangeFactory; dbHelperParameterCache = modelStore.DBHelperParameterCache; inlineParemeterMapBuilder = new InlineParemeterMapBuilder(modelStore); }