amantinband / clean-architecture

The ultimate clean architecture template for .NET applications 💪
MIT License
1.53k stars 254 forks source link

Purpose of just calling Property() #6

Closed amirhessampourhossein closed 9 months ago

amirhessampourhossein commented 9 months ago

I have seen the code below in your fluent configuration for User

builder.Property(u => u.Email);

builder.Property(u => u.LastName);

builder.Property(u => u.FirstName);

Is there a reason for calling only the .Property() method with nothing else ?

amantinband commented 9 months ago

The properties aren't included by default since they don't have a getter and a setter, only a getter: image

amirhessampourhossein commented 9 months ago

Thank you very much for taking the time. I was not aware of this ❤ @amantinband