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;
 }
Example #2
0
 public virtual void Visit(ManyToOneValueType manyToOneValueType)
 {
 }