Deserialize object as an interface with MongoDB C# Driver

前端 未结 3 1958
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 16:52

I am developing a project that uses MongoDB (with C# driver) and DDD.

I have a class (aggregate) which have a property whi

3条回答
  •  抹茶落季
    2020-12-17 16:53

    [BsonSerializer(typeof(ImpliedImplementationInterfaceSerializer))] public IReviewExpert Expert { get; set; }

    works for me

提交回复
热议问题