Ejemplo n.º 1
0
        /// <summary>
        /// Recupera a instancia do filho da entidade.
        /// </summary>
        /// <typeparam name="TChild"></typeparam>
        /// <param name="childContainer"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        protected TChild GetSingleChild <TChild>(EntityLoaderChildContainer childContainer, string name) where TChild : IEntity
        {
            var child = childContainer.GetSingle <TChild>(name);

            RegisterChild(child);
            return(child);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Recupera a instancia do filho da entidade.
        /// </summary>
        /// <typeparam name="TChild"></typeparam>
        /// <param name="childContainer"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        protected IEntityChildrenList <TChild> GetChild <TChild>(EntityLoaderChildContainer childContainer, string name) where TChild : IEntity
        {
            var child = childContainer.Get <TChild>(name);

            RegisterChild(child);
            return(child);
        }
 /// <summary>
 /// Construtor padrão.
 /// </summary>
 /// <param name="dataModel"></param>
 /// <param name="recordKey"></param>
 /// <param name="children"></param>
 /// <param name="linkContainer"></param>
 /// <param name="references">Container das referências.</param>
 /// <param name="uiContext"></param>
 /// <param name="typeManager"></param>
 public EntityLoaderCreatorArgs(Data.IModel dataModel, Query.RecordKey recordKey, EntityLoaderChildContainer children, IEntityLoaderLinksContainer linkContainer, EntityLoaderReferenceContainer references, string uiContext, IEntityTypeManager typeManager)
 {
     _dataModel         = dataModel;
     _recordKey         = recordKey;
     _children          = children;
     _links             = linkContainer;
     _references        = references;
     _uiContext         = uiContext;
     _entityTypeManager = typeManager;
 }