在MongoDB C#驱动程序中获取DBRef的命名空间引用

在MongoDB C#驱动程序中获取DBRef的命名空间引用,mongodb,mongodb-.net-driver,mongorepository,Mongodb,Mongodb .net Driver,Mongorepository,我正在使用MongoDB C#驱动程序,我想做类似的事情 所以我创建了这样一个实体: using System.Collections.Generic; using MongoDB.Driver; using MongoRepository; using MongoDB.Bson; using MongoDB; ... public class Movie : Entity { public string Title { get; set; } public string S

我正在使用MongoDB C#驱动程序,我想做类似的事情

所以我创建了这样一个实体:

using System.Collections.Generic;
using MongoDB.Driver;
using MongoRepository;
using MongoDB.Bson;
using MongoDB;

...

public class Movie : Entity {
    public string Title { get; set; }
    public string Synopsis { get; set; }
    public List<DBRef> Likes { get; set; }
}
使用System.Collections.Generic;
使用MongoDB.Driver;
使用mongorespository;
使用MongoDB.Bson;
使用MongoDB;
...
公共类电影:实体{
公共字符串标题{get;set;}
公共字符串摘要{get;set;}
公共列表类似于{get;set;}
}
但是DBRef给出了以下错误:

找不到类型或命名空间“DBRef”

我使用的是1.8.1.20版的驱动程序和1.5.1.0版的MongoRepository


获取DBRef需要引用什么名称空间?

链接问题中的类型似乎是错误的,实际上应该是
MongoDBRef