Why do you use [NotMapped] here?
I did not write. I was analyzing an old project and I got it from there. )
That's what I didn't understand. (
The NotMapped attribute can be applied to properties of an entity class for which we do not want to create corresponding columns in the database Looks like [NotMapped] can not be used with [DatabaseGenerated] https://www.learnentityframeworkcore.com/configuration/data-annotation-attributes/databasegenerated-attribute
Thanks, I made sense.
Обсуждают сегодня