Exemple #1
0
        public ManyToManyPart <TChild> AsSimpleAssociation(string indexColumn, string valueColumn)
        {
            EnsureGenericDictionary();

            var indexType   = typeof(TChild).GetGenericArguments()[0];
            var typeOfValue = typeof(TChild).GetGenericArguments()[1];

            index = new IndexPart(indexType);
            index.Column(indexColumn);
            index.Type(indexType);

            ChildKeyColumn(valueColumn);
            valueType = typeOfValue;

            isTernary = true;

            return(this);
        }