New Post: Do I need to call Tolist() methods for these layers?
Hi Weera, Regarding the call to the helpers methods you mentioned, take into account that these methods are used to delegate logic and as far as I know which behavior you will obtain when calling them,...
View ArticleNew Post: IServiceLocator inject at constructor VS ServiceLocator's static...
Hi, In my WPF, I could not use constructor injected because of my ViewModel already derrived from other class. Then I modified the helper code to following by using FullName ServiceLocator. public...
View ArticleNew Post: How to add nest collection lists items?
Hi aadami, Why do the team place Data model from Data Access layer at JScript>>Models folder to viewModel? And seems like the team Mix DAL's model + Domain's model At least there's 3 kind of...
View ArticleNew Post: IServiceLocator inject at constructor VS ServiceLocator's static...
Hi, As far as I know, the main difference is that you are obtaining the ServiceLocator from two different places. When you obtain an instance of the ServiceLocator through constructor injection, you...
View ArticleNew Post: How to add nest collection lists items?
Hi, Based on my understanding, if you are referring to the JSonViewModels which are used to define the structure that will be returned as the result of the ajax calls. As far as I know, these models...
View ArticleNew Post: IServiceLocator inject at constructor VS ServiceLocator's static...
Hi DCherubini, Thank you very much. Best Regards, Weera
View ArticleNew Post: How to add nest collection lists items?
Hi aadami, I am very very appreciate your help but my issues still persist there. This would be the last Q that I would like to ask you if you can. I cannot convert one to many when I return...
View ArticleNew Post: UnityPerRequestLifetimeManager not disposing
Shouldn't the LifetimeManager remove the instance associated with the request when EndRequest fires? The current code Disposes the LifetimeManager instance instead. We need to keep the...
View ArticleNew Post: UnityPerRequestLifetimeManager not disposing
Hi Don, As far as I know, a new instances of the UnityPerRequestLifetimeManager will be created with each different request made, hence disposing these instances in the EndRequestHandler of each...
View ArticleNew Post: UnityPerRequestLifetimeManager not disposing
Agustin, Unity LifetimeManager instances are provided during container type registration: container.RegisterType<IUnitOfWork, HmsDbContext>(new HttpContextPerRequestLifetimeManager()); I provide...
View ArticleNew Post: How to add nest collection lists items?
Hi everybody, In my opinion, how to resolve the scenario that Weera is mentioning will depend mostly of how and what you need to pass between the Domain and Data layers. For example, if your...
View ArticleNew Post: UnityPerRequestLifetimeManager not disposing
Hi Don, In my opinion, how to manager your LifetimeManagers and the corresponding registered instances will depend of the requirements of your scenario and your personal preferences. If in your...
View ArticleNew Post: UnityPerRequestLifetimeManager not disposing
Damian, Thanks for the reply. I am not seeing the LifetimeManager behavior you describe in the MileageStats project. I see instances of UnityHttpContextPerRequestLifetimeManager created only at...
View ArticleNew Post: How to add nest collection lists items?
Hi DCherubini, Thanks for sharing your code. I like this domain concept. I love your code.
View ArticleNew Post: The Model between Business Layer and Dal?
Hi, There's a number of Models that I am doubt. Sometime I need new Model for transfer data between DAL to BLL. Similar when we use SQL's view, But in my case it is really complicated. E.G I need to...
View ArticleNew Post: How to create DbContext for long running process?
Hi, Is it overhead with data from database if using constructor injection? Or Why not use this? using(var context = new DbContext) { }
View ArticleNew Post: How to create DbContext for long running process?
Hi, As far as I know, using construction injection will result in a small overhead compared to creating an instance manually, as the container needs to analyze the class through reflexion, resolve the...
View ArticleNew Post: How to create DbContext for long running process?
Hi DCherubini, I found that the DbContext contain lots of data from db and get added overtime. Thanks. WP
View ArticleNew Post: Why EF team use DTO at DAL and Silk Team use at DomainModel?
Hi, Your can checkout this link. http://msdn.microsoft.com/en-us/subscriptions/jj592677.aspx
View ArticleNew Post: The Model between Business Layer and Dal?
Hi, I am not experienced in implementing models that use data for more than one table. However, in my opinion your approach seems to be a valid one to address such scenario, specially if you have...
View Article