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); }
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))); }
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); }
private DetectionRulesDescriptor Add(IDetectionRule m) { PromisedValue.Add(m); return(this); }
public RuleConditionsDescriptor Condition(Func <RuleConditionDescriptor, IRuleCondition> selector) { PromisedValue.AddIfNotNull(selector?.Invoke(new RuleConditionDescriptor())); return(this); }
public EmailAttachmentsDescriptor HttpAttachment(string name, Func <HttpAttachmentDescriptor, IHttpAttachment> selector) { PromisedValue.Add(name, selector?.Invoke(new HttpAttachmentDescriptor())); return(this); }