Skip to content

Configuration

Jean-Pierre Bachmann edited this page Jun 12, 2016 · 1 revision

The DataAccess lib builds up on an Powerful build-in reflection cache named MetaInfoStore. This cache stores and generates delegates to all functions, Properties and other Metadata. It is designed to even work on external Projects and is not bound to the DataAccess Project. It will maybe moved to an external lib.

DataAccess MetaInfoStore (DbConfig).

This special version of the MetaInfoStore contains all infos about existing attributes, Factorys and overwrites. If you want to change the behavior of an Entity on Runtime you can do this by getting an ClassInfoCache from the store for the desired type. On this object you can Add/Remove/Change all Properties/Constructors/Attributes/Functions.

There is an Build in function for Self-Configuration for each Entity. You can create a function that is public static void has any name and defines ether a single DbConfig or an ConfigurationResolver<Entity> argument. This can give you a way to Configure an entity without using compile time Attributes.

Clone this wiki locally