Exemplo n.º 1
0
        public RelationsDescriptor Join <TParent, TChild>()
        {
            if (PromisedValue.ContainsKey(typeof(TParent)))
            {
                throw new ArgumentException(Message(typeof(TParent)));
            }

            return(Assign(typeof(TParent), typeof(TChild)));
        }
        private SuggestContextQueriesDescriptor <T> AddContextQueries(string name, List <ISuggestContextQuery> contextQueries)
        {
            if (contextQueries != null)
            {
                PromisedValue.Add(name, contextQueries);
            }

            return(this);
        }
Exemplo n.º 3
0
        public RelationsDescriptor Join <TParent>(RelationName child, params RelationName[] moreChildren)
        {
            if (PromisedValue.ContainsKey(typeof(TParent)))
            {
                throw new ArgumentException(Message(typeof(TParent)));
            }

            return(Assign(typeof(TParent), new Children(child, moreChildren)));
        }
Exemplo n.º 4
0
 protected TDescriptor Assign(TKey key, TValue value)
 {
     PromisedValue.Add(key, value);
     return(Self);
 }
		public EmailAttachmentsDescriptor DataAttachment(string name, Func<DataAttachmentDescriptor, IDataAttachment> selector)
		{
			PromisedValue.Add(name, selector?.Invoke(new DataAttachmentDescriptor()));
			return this;
		}
 private RoleMappingRulesDescriptor Add(RoleMappingRuleBase m)
 {
     PromisedValue.AddIfNotNull(m);
     return(this);
 }
Exemplo n.º 7
0
 private DetectionRulesDescriptor Add(IDetectionRule m)
 {
     PromisedValue.Add(m);
     return(this);
 }
Exemplo n.º 8
0
 public RuleConditionsDescriptor Condition(Func <RuleConditionDescriptor, IRuleCondition> selector)
 {
     PromisedValue.AddIfNotNull(selector?.Invoke(new RuleConditionDescriptor()));
     return(this);
 }
Exemplo n.º 9
0
 public EmailAttachmentsDescriptor HttpAttachment(string name, Func <HttpAttachmentDescriptor, IHttpAttachment> selector)
 {
     PromisedValue.Add(name, selector?.Invoke(new HttpAttachmentDescriptor()));
     return(this);
 }