postgresqlmartennosql

Marten JasperFx - How to ignore property of class when document is generated


Its possible ignore class property when Marten store document on database?

Eg.:

    public class Test
    {
        public int Id { get; set; }
        public string Name { get; set; }
        [Ignore this when create a document on DB]
        public Date DateOfBirth { get; set; }
    }

Solution

  • SOLVED

    public class Test
    {
       public int Id { get; set; }
       public string Name { get; set; }
       [IgnoreDataMember]
       public Date DateOfBirth { get; set; }
    }