Ejemplo n.º 1
0
        public override void Bind(DbCommand command, IList <Parameter> multiSqlQueryParametersList, int singleSqlParametersOffset, IList <Parameter> sqlQueryParametersList, QueryParameters queryParameters, ISessionImplementor session)
        {
            TypedValue typedValue  = queryParameters.NamedParameters[name];
            string     backTrackId = GetIdsForBackTrack(session.Factory).First();         // just the first because IType suppose the oders in certain sequence

            foreach (int position in sqlQueryParametersList.GetEffectiveParameterLocations(backTrackId))
            {
                ExpectedType.NullSafeSet(command, GetPagingValue(typedValue.Value, session.Factory.Dialect, queryParameters), position + singleSqlParametersOffset, session);
            }
        }
        public void Bind(IDbCommand command, IList <Parameter> multiSqlQueryParametersList, int singleSqlParametersOffset, IList <Parameter> sqlQueryParametersList, QueryParameters queryParameters, ISessionImplementor session)
        {
            TypedValue typedValue  = queryParameters.NamedParameters[name];
            string     backTrackId = GetIdsForBackTrack(session.Factory).First();

            foreach (int position in sqlQueryParametersList.GetEffectiveParameterLocations(backTrackId))
            {
                ExpectedType.NullSafeSet(command, typedValue.Value, position + singleSqlParametersOffset, session);
            }
        }
        public void Bind(IDbCommand command, IList <Parameter> multiSqlQueryParametersList, int singleSqlParametersOffset, IList <Parameter> sqlQueryParametersList, QueryParameters queryParameters, ISessionImplementor session)
        {
            string backTrackId = GetIdsForBackTrack(session.Factory).First();             // just the first because IType suppose the oders in certain sequence

            // The same filterName-parameterName can appear more than once in the whole query
            object value = session.GetFilterParameterValue(filterParameterFullName);

            foreach (int position in multiSqlQueryParametersList.GetEffectiveParameterLocations(backTrackId))
            {
                ExpectedType.NullSafeSet(command, value, position, session);
            }
        }