Hello. I have this question. In almost all code examples using the Entity Framework, the class properties of the database modeling tables have the virtual modifier. Saw somewhere that it needs to implement a lazy boot . How are these two things related? Or maybe the need for virtual is something else?

    1 answer 1

    That's right, for the functioning of a lazy boot, the virtual modifier is necessary. This is due to the possibility of overriding properties just the same, i.e. directly with virtual capabilities.

    For example, read here .