public override void Visit(ManyToOneValueType manyToOneValueType) { var referenceClassMap = this.mongoSession.MappingStore.GetClassMapFor(manyToOneValueType.ReferenceType); if (this.value != null) { var id = referenceClassMap.IdMap.ValueConverter.ToDocument(referenceClassMap.GetId(this.value)); this.value = new DBRef(referenceClassMap.CollectionName, id); } else this.value = MongoDBNull.Value; }
public virtual void Visit(ManyToOneValueType manyToOneValueType) { }