Overridden virtual properties are serialized even if the overriding property has the BsonIgnoreAttribute

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4
    • Affects Version/s: 1.3.1
    • Component/s: None
    • Environment:
      Windows Server 2008, .NET 4.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      public class BaseClass
      {
      public virtual object Property

      {get;set;}
      }

      public class DerivedClass : BaseClass
      {
      [BsonIgnore]
      public override object Property {get;set;}

      }

      When saving an instance of DerivedClass, Property will still be serialized to the database.

            Assignee:
            Robert Stam
            Reporter:
            Joe Enzminger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: