Skip to content

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

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).

Clone this wiki locally