Description
Hi everyone,
I'm currently stuck in this situation:
class A |
{
|
public DateTime CreatedOn \{ get; set; } |
}
|
|
|
class B : A |
{
|
public new DateTimeOffset CreatedOn \{ get; set; } |
}
|
Every time I try to get an IMongoCollection<B> I get this error:
MongoDB.Bson.BsonSerializationException: 'The property 'CreatedOn' of type 'B' cannot use element name 'CreatedOn' because it is already being used by property 'CreatedOn' of type 'A`1. |
Is there any way to get around this problem?
Thank you in advance,
Luca