Questions tagged as 'lazy-loading'

1
answer

What are the best practices for implementing 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 I actually use the object I will instantiate it (Start). I do not know if I'm sinning in any det...
asked by 03.07.2017 / 16:14
1
answer

EntityFramework 6 + LazyLoadingEnabled + using ()

I need a help. My problem is this: I can not return the items of my object. Follow my code for review. Client Class public partial class Cliente { public Cliente() { this.ClienteEndereco = new HashSet<ClienteEndereco&g...
asked by 22.05.2015 / 16:55
2
answers

How to use fluent nhibernate properly?

One problem I have encountered due to inexperience with this kind of tool is how to use lazy load without interfering with the software architecture. I use the following architecture: IHM (Human Machine Interface): It has all the forms a...
asked by 24.06.2014 / 21:01
2
answers

Is there a late reading class in the .Net framework?

I would like to know if there is any class in .Net that allows me to tell it how to read a data, but that DO NOT read immediately ... only later when requested, this class it reads and stores the value, in case several readings are taken. S...
asked by 31.01.2014 / 22:26
1
answer

What is lazy instantiation?

I saw here in the Wakim answer that code snippet: data class Person(val firstName: String, val lastName: String) { val fullName: String by lazy { "$firstName $lastName" } } What is this lazy instantiation ?     
asked by 12.08.2017 / 00:40
1
answer

Lazy Load OneToMany

Hello. I'm having difficulty running my fetch = FetchType.LAZY relationships with the @OneToMany annotation. In my entity Nota Fiscal, there are several lists fetch = FetchType.LAZY, when loading the object by id, I load all these lists with...
asked by 22.09.2014 / 19:46
1
answer

Doubts about implementation of Lazy Load and Dependency Injection

The scenario is simple, it has a PersonPass class that has linked to it a list of Contacts (instances of physical persons), Telephones (instances of a Phone entity), and a list of Addresses (instances of an Address entity) / p> I have in the c...
asked by 01.05.2015 / 17:35
1
answer

Entities marked FETCH LAZY are returning "null" even after a call to the GET method

Hello, good morning, friends, Why are my entities marked as fetch lazy returning "null" even when they are invoked via a get? What I learned in several courses is that when I make the first call to a get method, hibernate would load the da...
asked by 19.11.2018 / 12:22
1
answer

LazyLoad even putting .include (t = t.Model)

I'm having the error:    Exception Details: System.ObjectDisposedException: The ObjectContext   instance has been disposed and can not be used anymore for operations   that require a connection. When I call: @Html.DisplayFor(modelItem =...
asked by 29.04.2016 / 18:54
2
answers

Infinite listview on android

I have an app that consumes a web service, but I have a generic call that searches all users and this is taking too long because I have several records, I want to do so the user goes down the screen and there is more data in the listview , but m...
asked by 31.07.2015 / 00:55