tagged [loading]
Lazy<T> with expiration time
Lazy with expiration time I want to implement an expiration time on a Lazy object. The expiration cooldown must start with the first retrieve of the value. If we get the value, and the expiration time...
- Modified
- 8 Sep at 15:35
Running sites on "localhost" is extremely slow
Running sites on "localhost" is extremely slow Having real trouble using my localhost to test sites. It runs extremely slowly! Sometimes it takes up to a minute to load a page. I'm using Firefox and t...
- Modified
- 27 Feb at 01:31
Hibernate: best practice to pull all lazy collections
Hibernate: best practice to pull all lazy collections ``` @Entity public class MyEntity { @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "myen...
- Modified
- 12 Nov at 12:16
Lazy loading - what's the best approach?
Lazy loading - what's the best approach? I have seen numerous examples of lazy loading - what's your choice? Given a model class for example: The Person class s
- Modified
- 23 May at 12:7
Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=11.0.0.0'
Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=11.0.0.0' I am using MSTest.TestAdapter and MSTest.TestFramework both version 1.2.0 for my MS tests unit tests...
- Modified
- 11 Mar at 15:34
How can I make a JPA OneToOne relation lazy
How can I make a JPA OneToOne relation lazy In this application we are developing, we noticed that a view was particularly slow. I profiled the view and noticed that there was one query executed by hi...
- Modified
- 22 May at 13:9
EF Code First Lazy loading Not Working
EF Code First Lazy loading Not Working I am using code first with EF6 but cannot seem to get lazy loading to work. Eager loading is working fine. I have the following classes: ``` public class Merchan...
- Modified
- 26 Feb at 04:7
Dynamically Add Images React Webpack
Dynamically Add Images React Webpack I've been trying to figure out how to dynamically add images via React and Webpack. I have an image folder under and a component under . I'm using url-loader with...
- Modified
- 7 Apr at 15:32
Ajax: wait X seconds before load
Ajax: wait X seconds before load I have a search form that show live results in a specified div (look at there [Filter results with Jquery](https://stackoverflow.com/questions/1856982/filter-results-w...
Loading Nested Entities / Collections with Entity Framework
Loading Nested Entities / Collections with Entity Framework I am trying to Eagerly load all the related entities or collection of Entity in one call. My Entities Looks like: ``` Class Person { publi...
- Modified
- 21 Aug at 07:54
How to add a spinner icon to button when it's in the Loading state?
How to add a spinner icon to button when it's in the Loading state? Twitter [Bootstrap's buttons](http://getbootstrap.com/javascript/#buttons) have a nice `Loading...` state available. The thing is th...
- Modified
- 20 Mar at 22:20
How can I display a loading control while a process is waiting for be finished?
How can I display a loading control while a process is waiting for be finished? I decided to use this third-party component to make a simple loading control in my windows form. [http://www.codeproject...
Using repository pattern to eager load entities using ThenIclude
Using repository pattern to eager load entities using ThenIclude My application uses Entity Framework 7 and the repository pattern. The GetById method on the repository supports eager loading of child...
- Modified
- 10 Sep at 11:8
Entity Framework Core 2.0.1 Eager Loading on all nested related entities
Entity Framework Core 2.0.1 Eager Loading on all nested related entities I have a simple problem, but cant seem to find a way around it. I am using Entity Framework Core version 2.0.1 and want to eage...
- Modified
- 1 Apr at 11:22
Lazy<T>: "The function evaluation requires all threads to run"
Lazy: "The function evaluation requires all threads to run" I have a static class with some static properties. I initialized all of them in a static constructor, but then realized that it is wasteful ...
- Modified
- 7 Aug at 18:7
Dynamic loading of images in WPF
Dynamic loading of images in WPF I have a strange issue with WPF, I was loading images from the disk at runtime and adding them to a StackView container. However, the images were not displayed. After ...
Loading an object from a db4o database
Loading an object from a db4o database I am developing an e-commerce website that utilises db4o as the backend. All was well until last week when I came across a problem that I have been unable to sol...
- Modified
- 24 Jan at 11:28
Repository pattern: Implementation and lazy loading of model relationships
Repository pattern: Implementation and lazy loading of model relationships I have an application which deals with products and product categories. For each of these I have models defined using POCO. `...
- Modified
- 10 May at 17:28
Lazy<T> implementation and .NET generics
Lazy implementation and .NET generics I was looking for ways to do lazy initialization and found [Lazy](http://msdn.microsoft.com/en-us/library/dd642331.aspx) which is included in .NET 4. I was thinki...
- Modified
- 11 Aug at 22:18
Is a lock required with a lazy initialization on a deeply immutable type?
Is a lock required with a lazy initialization on a deeply immutable type? If I have a deeply immutable type (all members are readonly and if they are reference type members, then they also refer to ob...
- Modified
- 18 Oct at 20:50
Effect of LoaderOptimizationAttribute
Effect of LoaderOptimizationAttribute I have written a small piece of code regarding the dynamic loading of assemblies and creating class instances from those assemblies, including an executable, a te...
- Modified
- 8 Jun at 10:59
Forcing a checkbox bound to a DataSource to update when it has not been viewed yet
Forcing a checkbox bound to a DataSource to update when it has not been viewed yet Here is a test framework to show what I am doing: 1. create a new project 2. add a tabbed control 3. on tab 1 put a b...
- Modified
- 26 Mar at 18:4
Eager , Lazy and explicit loading in EF6
Eager , Lazy and explicit loading in EF6 I have read this [tutorial](http://www.entityframeworktutorial.net/EntityFramework5/entity-framework5-introduction.aspx) and this [article](https://msdn.micros...
- Modified
- 21 Jan at 15:23
NHibernate session management and lazy loading
NHibernate session management and lazy loading I am having a heck of a time trying to figure out my session management woes in NHibernate. I am assuming that a lot of my trouble is due to lack of know...
- Modified
- 23 Jun at 19:36
How to fix org.hibernate.LazyInitializationException - could not initialize proxy - no Session
How to fix org.hibernate.LazyInitializationException - could not initialize proxy - no Session I get the following exception: ``` Exception in thread "main" org.hibernate.LazyInitializationException: ...
- Modified
- 4 Jun at 09:45