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

            return(Assign(typeof(TParent), typeof(TChild)));
        }
예제 #2
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)));
        }