/// <summary> /// Recupera a instancia do filho da entidade. /// </summary> /// <typeparam name="TLink"></typeparam> /// <param name="linkContainer"></param> /// <param name="name"></param> /// <returns></returns> protected TLink GetSingleLink <TLink>(IEntityLoaderLinksContainer linkContainer, string name) where TLink : IEntity { var link = linkContainer.GetSingle <TLink>(name); RegisterLink(link); return(link); }
/// <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; }