protected override DbParameter CreateParameter( string parameterName, AuthorizationSegmentEndpointWithValue segmentEndpoint) { return(new SqlParameter { ParameterName = parameterName, Value = segmentEndpoint.Value }); }
protected virtual string GetSingleValueCriteriaExpression( AuthorizationSegmentEndpointWithValue segmentEndpoint, IList <DbParameter> parameters, ref int parameterIndex) { string parameterName = "@p" + parameterIndex++; parameters.Add(CreateParameter(parameterName, segmentEndpoint)); return(" = " + parameterName); }
protected abstract DbParameter CreateParameter( string parameterName, AuthorizationSegmentEndpointWithValue segmentEndpoint);