Exemplo n.º 1
0
 /// <summary>
 /// 从程序集中刷新实体信息,主要检索实现了<see cref="IEntity{TKey}"/>接口的实体类
 /// </summary>
 public void Initialize()
 {
     Type[]        entityTypes = EntityTypeFinder.FindAll();
     TEntityInfo[] entityInfos = GetEntityInfos(entityTypes);
     UpdateToRepository(entityInfos);
     RefreshCache();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化一个<see cref="EntityInfoHandlerBase{TEntityInfo, TKey}"/>类型的新实例
 /// </summary>
 protected EntityInfoHandlerBase()
 {
     EntityTypeFinder = new EntityTypeFinder();
 }