P
P
Pixilys2022-04-06 12:00:48
WPF
Pixilys, 2022-04-06 12:00:48

How is it more practical to create classes for saving in the database and working with them?

There is a Person class, it has a numeric Name field where the Id of the record from the table with names is stored.
How practical would it be?
Create a NameStr string field in the Person class and decorate it with the NotMapped attribute.
Or
Create class PersonStr inheriting from Person.
The process of writing a program in the active phase, any changes are not terrible.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question