Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previosuly ignored read-only properties are not being ignored anymore #289

Open
ALMMa opened this issue Dec 19, 2021 · 0 comments
Open

Previosuly ignored read-only properties are not being ignored anymore #289

ALMMa opened this issue Dec 19, 2021 · 0 comments

Comments

@ALMMa
Copy link

ALMMa commented Dec 19, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants