private void CreateIndexMapping(Action <IndexPart> customIndex) { var indexPart = new IndexPart(typeof(T)); if (customIndex != null) { customIndex(indexPart); } indexMapping = indexPart.GetIndexMapping(); }
private void CreateIndexMapping(Action <IndexPart> customIndex) { var indexPart = new IndexPart(typeof(T)); if (customIndex != null) { customIndex(indexPart); } #pragma warning disable 612,618 indexMapping = indexPart.GetIndexMapping(); #pragma warning restore 612,618 }
public ManyToManyPart <TChild> AsSimpleAssociation(string indexColumn, string valueColumn) { this.EnsureGenericDictionary(); Type type1 = typeof(TChild).GetGenericArguments()[0]; Type type2 = typeof(TChild).GetGenericArguments()[1]; this.index = new IndexPart(type1); this.index.Column(indexColumn); this.index.Type(type1); this.ChildKeyColumn(valueColumn); this.valueType = type2; this.isTernary = true; return(this); }
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); }