public override IStreamedDataInfo GetOutputDataInfo(IStreamedDataInfo inputInfo) { var inputSequenceInfo = ArgumentUtility.CheckNotNullAndType <StreamedSequenceInfo> ("inputInfo", inputInfo); return(new StreamedSequenceInfo(typeof(IQueryable <>).MakeGenericType(inputSequenceInfo.ItemExpression.Type), inputSequenceInfo.ItemExpression)); }
/// <summary> /// Transforms all the expressions in this clause and its child objects via the given <paramref name="transformation"/> delegate. /// </summary> /// <param name="transformation">The transformation object. This delegate is called for each <see cref="Expression"/> within this /// clause, and those expressions will be replaced with what the delegate returns.</param> public void TransformExpressions(Func <Expression, Expression> transformation) { ArgumentUtility.CheckNotNull("transformation", transformation); JoinClause.TransformExpressions(transformation); }
/// <summary> /// Modifies the given query model for fetching, changing the <see cref="SelectClause.Selector"/> to the fetch source expression. /// For example, a fetch request such as <c>FetchOne (x => x.Customer)</c> will be transformed into a <see cref="SelectClause"/> selecting /// <c>y.Customer</c> (where <c>y</c> is what the query model originally selected). /// This method is called by <see cref="FetchRequestBase.CreateFetchQueryModel"/> in the process of creating the new fetch query model. /// </summary> protected override void ModifyFetchQueryModel(QueryModel fetchQueryModel) { ArgumentUtility.CheckNotNull("fetchQueryModel", fetchQueryModel); fetchQueryModel.SelectClause.Selector = GetFetchedMemberExpression(fetchQueryModel.SelectClause.Selector); }
public bool ContainsMapping(IQuerySource querySource) { ArgumentUtility.CheckNotNull("querySource", querySource); return(_lookup.ContainsKey(querySource)); }
/// <summary> /// Determines whether the specified method was registered with this <see cref="MethodInfoBasedNodeTypeRegistry"/>. /// </summary> public bool IsRegistered(MethodInfo method) { ArgumentUtility.CheckNotNull("method", method); return(GetNodeType(method) != null); }
public void AddClassType(Type type) { ArgumentUtility.CheckNotNull("type", type); _type = type; }
public void AddComposedInterfaces(IEnumerable <Type> composedInterfaces) { ArgumentUtility.CheckNotNull("composedInterfaces", composedInterfaces); _composedInterfaces = composedInterfaces.ToList().AsReadOnly(); }
public ChangeResistantEnumerable(ObservableCollection <T> collection) { ArgumentUtility.CheckNotNull("collection", collection); _collection = collection; }
public override IStreamedDataInfo GetOutputDataInfo(IStreamedDataInfo inputInfo) { var sequenceInfo = ArgumentUtility.CheckNotNullAndType <StreamedSequenceInfo> ("inputInfo", inputInfo); return(new StreamedScalarValueInfo(sequenceInfo.ItemExpression.Type)); }
protected virtual Expression VisitParameterExpression(ParameterExpression expression) { ArgumentUtility.CheckNotNull("expression", expression); return(expression); }
public ExceptExpressionNode(MethodCallExpressionParseInfo parseInfo, Expression source2) : base(parseInfo, null, null) { ArgumentUtility.CheckNotNull("source2", source2); Source2 = source2; }
protected virtual Expression VisitConstantExpression(ConstantExpression expression) { ArgumentUtility.CheckNotNull("expression", expression); return(expression); }
protected internal virtual Expression VisitExtensionExpression(ExtensionExpression expression) { ArgumentUtility.CheckNotNull("expression", expression); return(expression.VisitChildren(this)); }
public PrimaryKeySchemaServiceFactory(Func <IPrimaryKeySchemaService> createService) { ArgumentUtility.CheckNotNull("createService", createService); this._createService = createService; }
public override StreamedSequence ExecuteInMemory <T> (StreamedSequence input) { ArgumentUtility.CheckNotNull("input", input); return(input); }
protected BusinessObjectPropertyPathPropertyEnumeratorBase(string propertyPathIdentifier) { ArgumentUtility.CheckNotNullOrEmpty("propertyPathIdentifier", propertyPathIdentifier); _remainingPropertyPathIdentifier = propertyPathIdentifier; }
protected FetchRequestBase(MemberInfo relationMember) { ArgumentUtility.CheckNotNull("relationMember", relationMember); _relationMember = relationMember; }
public bool IsCopiedAttributeType(Type type) { ArgumentUtility.CheckNotNull("type", type); return(CopiedAttributeTypes.Length == 0 || ((IList)CopiedAttributeTypes).Contains(type)); }
public void AddMixins(IEnumerable <MixinContext> mixinContexts) { ArgumentUtility.CheckNotNull("mixinContexts", mixinContexts); _mixinContexts = mixinContexts.ToList().AsReadOnly(); }
public CopyCustomAttributesAttribute(Type attributeSourceType, string attributeSourceMemberName, params Type[] copiedAttributeTypes) { _attributeSourceType = ArgumentUtility.CheckNotNull("attributeSourceType", attributeSourceType); _attributeSourceMemberName = ArgumentUtility.CheckNotNull("attributeSourceMemberName", attributeSourceMemberName); _copiedAttributeTypes = ArgumentUtility.CheckNotNull("copiedAttributeTypes", copiedAttributeTypes); }
public OfTypeResultOperator(Type searchedItemType) { ArgumentUtility.CheckNotNull("searchedItemType", searchedItemType); SearchedItemType = searchedItemType; }
public virtual ITableInfo Accept(ITableInfoVisitor visitor) { ArgumentUtility.CheckNotNull("visitor", visitor); return(visitor.VisitSubStatementTableInfo(this)); }
protected override FormFunction <Group> CreateEditFunction(ITransactionMode transactionMode, IDomainObjectHandle <Group> editedObject) { ArgumentUtility.CheckNotNull("transactionMode", transactionMode); return(new EditGroupFormFunction(transactionMode, editedObject)); }
public static Type GetUnderlyingMixedType(this Type type) { ArgumentUtility.CheckNotNull("type", type); return(MixinTypeUtility.GetUnderlyingTargetType(type)); }
public RegularExpressionSelectionStrategy(string regex) { ArgumentUtility.CheckNotNull("regex", regex); _regex = new Regex(regex); }
public override TResultType Accept <TResultType>(IVfpExpressionVisitor <TResultType> visitor) { return(ArgumentUtility.CheckNotNull("visitor", visitor).Visit(this)); }
public FetchOneRequest(MemberInfo relationMember) : base(ArgumentUtility.CheckNotNull("relationMember", relationMember)) { }
/// <summary> /// Gets or adds an inner eager-fetch request for this <see cref="FetchRequestBase"/>. /// </summary> /// <param name="fetchRequest">The <see cref="FetchRequestBase"/> to be added.</param> /// <returns> /// <paramref name="fetchRequest"/> or, if another <see cref="FetchRequestBase"/> for the same relation member already existed, /// the existing <see cref="FetchRequestBase"/>. /// </returns> public FetchRequestBase GetOrAddInnerFetchRequest(FetchRequestBase fetchRequest) { ArgumentUtility.CheckNotNull("fetchRequest", fetchRequest); return(_innerFetchRequestCollection.GetOrAddFetchRequest(fetchRequest)); }
public IPersistenceModelLoader CreatePersistenceModelLoader(StorageProviderDefinition storageProviderDefinition, IStorageProviderDefinitionFinder storageProviderDefinitionFinder) { ArgumentUtility.CheckNotNull("storageProviderDefinition", storageProviderDefinition); return(new SqlStorageObjectFactory().CreatePersistenceModelLoader(storageProviderDefinition, storageProviderDefinitionFinder)); }
public override void Accept(IDefinitionVisitor visitor) { ArgumentUtility.CheckNotNull("visitor", visitor); visitor.Visit(this); }