fluent-mongo

FluentMongo throwing error all of a sudden

ぃ、小莉子 提交于 2019-12-11 12:27:28
问题 I am using FluentMongo and the MongoDBCSharpDriver. My code was working fine for a while, but after updating my MongoCSharpDriver, I now I keep getting this error when I try to query the database: "Discriminators can only be registered for classes, not for interface MyLib.Services.IRepoData." The interface IRepoData is just one that I use for all my objects saved to MongoDB. It just defines _id for everything. Here is the line that is breaking: var item = Collection.AsQueryable()