Dapper-Extensions icon indicating copy to clipboard operation
Dapper-Extensions copied to clipboard

Previosuly ignored read-only properties are not being ignored anymore

Open ALMMa opened this issue 4 years ago • 0 comments

Affected version: 1.7.0 (this works with 1.6.3).

Consider the POCO:

public class MyPoco
{
   public int Id { get; set; }
   public string Name { get; set; }
   public string Something => "Lorem";
}

And its corresponding map:

public class MyPocoMap : ClassMap<MyPoco>
{
   public MyPocoMap()
   {
      Table("MyTable");
      Map(x => x.Id).Column("MT_CODE");
      Map(x => x.Name).Column("MT_NAME");
   }
}

This used to work: read-only properties were ignored (like the Something on the model) which are not being ignored anymore.

I already fixed by adding explicit Ignore() into those. However, was this an intentionally introduced breaking change or just a side effect of something else?

ALMMa avatar Dec 19 '21 14:12 ALMMa