Ejemplo n.º 1
0
 /// <summary>
 ///     When the type of the entity is not known (this is a special case!) an EntityDescriptorInfo
 ///     can be built in place of the generic parameter T.
 /// </summary>
 /// <param name="entityID"></param>
 /// <param name="entityDescriptor"></param>
 /// <param name="implementors"></param>
 void BuildEntity(int entityID, IEntityDescriptorInfo entityDescriptor, object[] implementors)
 {
     EntityFactory.BuildEntityViews
         (entityID, _entityViewsToAdd.current, entityDescriptor, implementors);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     The EntityDescriptor doesn't need to be ever instantiated. It just describes the Entity
 ///     itself in terms of EntityViews to build. The Implementors are passed to fill the
 ///     references of the EntityViews components. Please read the articles on my blog
 ///     to understand better the terminologies
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="entityID"></param>
 /// <param name="implementors"></param>
 void BuildEntity <T>(int entityID, object[] implementors = null) where T : IEntityDescriptor, new()
 {
     EntityFactory.BuildEntityViews
         (entityID, _entityViewsToAdd.current, EntityDescriptorTemplate <T> .Default, implementors);
 }