-
Notifications
You must be signed in to change notification settings - Fork 12
ModelMetadata
Alex Fox Gill edited this page May 11, 2016
·
9 revisions
ModelMetadata
(source) is a parameter object class which encapsulates both the types of entities recognised by LazyEntityGraph, and any constraints which the library should adhere to. It is passed to ProxyInstanceCreator
(source) as a constructor argument. It has two properties:
-
EntityTypes
- A list of types which are recognised as a part of the model.
-
Constraints
- A list of Property Constraints which are applied to generated classes.
An instance of ModelMetadata
may be constructed by manually specifying these two lists; alternatively, it is possible to generate the model metadata from an ORM (see Entity Framework).