Most voted "lazy-loading" questions
Lazy Loading is a design standard used in programming to delay the initialization of an object to the point where it is needed. May contribute to the efficiency of the programme if properly implemented.
Learn more…23 questions
Sort by count of
-
12
votes1
answer293
viewsWhat are the best practices with implementation of Dryioc, Fluentvalidation and Lazy?
I’m building an architecture based on the use of Lazy, DryIoc e o FluentValidation. I intend to do all validations with the object. When actually using the object I will instantiate it (Start). I…
-
10
votes2
answers197
viewsWhen to use Lazy<> from C#
Where is a good scenario to use the initializer Lazy<> of the C#? I ask this because I understand the concept behind the Lazy loading (delay the instance of an object to only when it is…
-
7
votes3
answers274
viewsHow to manipulate the DOM of a page before it finishes loading?
I am making a Lazy Loader in pure javascript, currently I put my embed script at the end of the HTML that identifies the images and, if they are not ready (for example loaded from the cache), this…
-
6
votes1
answer522
viewsEntityframework 6 + Lazyloadingenabled + using()
I need a help. My problem is this: I cannot return my object items. Follow my code for analysis. Client class public partial class Cliente { public Cliente() { this.ClienteEndereco = new…
c# asp.net-mvc entity-framework-6 lazy-loading repositoryasked 9 years, 6 months ago Henrique Abreu 379 -
5
votes2
answers147
viewsIs there in the framework . Net, any delayed reading class?
I wonder if in . Net there is some class that allows me to tell her how to read a data, but that DO NOT read immediately... only later when requested, this class reads and stores the value, in case…
-
5
votes2
answers2331
viewsHow to use the nhibernate Fluent appropriately?
A problem I have encountered due to the inexperience with this type of tool is HOW to use Lazy load without interfering with the software architecture. I use the following architecture: HMI (Human…
-
5
votes1
answer115
viewsWhat is Lazy instantiation?
I saw here on wakim’s response that code snippet: data class Person(val firstName: String, val lastName: String) { val fullName: String by lazy { "$firstName $lastName" } } What is this so-called…
-
3
votes1
answer256
viewsDoubts about implementation of Lazy Load and Dependency Injection
The scenario is simple, it has a Personal Physical class that has linked to it a list of Contacts (instances of physical persons), Telephones (instances of an entity Telephone) and a list of…
c# asp.net pattern-design dependency-injection lazy-loadingasked 9 years, 6 months ago Intruso 1,625 -
3
votes1
answer1738
viewsLazy Load Onetomany
Hello. I’m having trouble getting my relationships fetch = Fetchtype.LAZY to work with the @Onetomany annotation. In my Notafiscal entity, there are several lists fetch = Fetchtype.LAZY, when…
-
3
votes1
answer81
viewsLazyload even putting . include(t => t.Model)
I’m having the mistake: Exception Details: System.Objectdisposedexception: The Objectcontext instance has been disposed and can no longer be used for Operations that require a Connection. When I…
-
3
votes1
answer145
viewsEntities marked as FETCH LAZY are returning "null" even after a call to the GET method
Hello, good morning friends, Why my entities marked as fetch Lazy are returning "null" even when they are invoked through a get? What I learned in several courses is that when making the first call…
-
2
votes2
answers198
viewsListview infinity on android
I have an app that consumes a web service, only I have a generic call that searches all users and this taking a long time because I have several records, I want to do so the user goes down the…
-
2
votes1
answer43
viewsQuerry Lazy Loading in EF Code First
It is possible to create a querry Lazy loading using a DbContext What is Eager Loading doing? Is there any way I can specify that Company company = db.Comanies.Find(id); this command does not need…
-
2
votes2
answers51
viewsLazy-Loaded and angular charging shapes
Hello good afternoon everyone... I’ve been an angular developer for a while, and I’ve come across two ways to make the famous Lazy-Loaded, which are: { path: 'rota', loadChildren:…
-
2
votes0
answers157
viewsJPA + Eclipselink - Lazy Loading with closed Entitymanager
I am using Eclipselink as JPA preview in a Java SE project. I have correctly configured Weaving to allow Lazy Loading. Unlike Hibernate (which launches Lazyinitializationexception), Eclipselink…
-
2
votes1
answer313
viewsLazy Load in Hibernate
I’m not getting Lazy Load to work in Spring. I have the following structure. //Livro.Java @Entity public class Livro { @JsonInclude(Include.NON_NULL) @Id @GeneratedValue(strategy =…
-
1
votes2
answers679
viewsocLazyLoad to load controllers from an Angularjs SPA
Hello, community! I wonder if it’s a good idea to use ocLazyLoad to carry the controllers an application (Single Page Application - SPA) of Angularjs. I’m using UI Router in place of ngRoute. The…
-
0
votes1
answer273
viewsLazy Load giving Rigger only via scroll, and not when being ordered
I have a gallery page on shadow box with a code of lazy load "working" on the images that appear inside the shadow box (the preload carries everything except the images inside the shadow box who are…
-
0
votes1
answer761
viewsProblems with Lazy Load Angular 5
Error adding Lazy loading Any help is welcome because I’m new at angular. I need to set up some file for this to work? app.modulets. import { BrowserModule } from '@angular/platform-browser'; import…
-
0
votes0
answers17
viewsUse Datatable with Lazy within several p:tab
I’ve been looking at some places like making a datatable with Lazy, so I can only upload the page data in display and not overload the server. But all the examples used only one table. I have a…
-
0
votes1
answer231
viewsHow to make Lazy loading correct at Angular 6, not known component error
I’m trying to do Lazy loading to load certain modules when hitting the URL that really needs to load these modules, however I am getting the following error: core.js:1673 ERROR Error: Uncaught (in…
-
-1
votes1
answer16
viewsFetch.Azy keeps loading the attribute what can it be?
Even if I use Azy my list is loaded, someone knows what’s going on? public class Departamento { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotEmpty(message="O campo…
-
-1
votes0
answers8
viewsSearching/ sorting with Lazy datatable of the primefaces with columns that are class component attributes
I have a datatable Lazy of the first faces that I need to filter and research, in the Lazy datatable of the first faces every time page, filter or order is executed the following method public…