New Post: How to use Unity Block solve the type that contain parameter?
Hi, Take a look at the code.public class UnitedExportDbContext : DbContext, IUnitOfWork{ //public string connectionString="data source=.\\SQLExpress;Integrated Security=SSPI;Initial...
View ArticleNew Post: How to use Unity Block solve the type that contain parameter?
Hi, Based on my understanding, you can also declare in the configuration file if you want to pass an specific value to a constructor parameter. For example, I believe you can do this by using the...
View ArticleNew Post: How to use Unity Block solve the type that contain parameter?
Hi DCherubini, Thanks, I was solve by inject the service rather than register it. public UnitedExportDbContext(IConnectionString connectionString) : base(connectionString.GetConnectionString()) { }...
View ArticleNew Post: How to debug the Javascript code
I am new to this area and maybe I am asking you a stupid question, but could anyone tell me how to debug the Javascript code of the Mileage Stats? I opened the application with IE10, and opened the...
View ArticleNew Post: How to debug the Javascript code
Hi Atsushi, In the Dashboard page, when using the developer tools in Internet Explorer 10, you can find the scripts in the View Sources button of the Script tab, named as mileagestats.js and...
View ArticleNew Post: How to debug the Javascript code
Hi Damian, Thank you really very much for your suggestion, but strangely I see no .js files under the debug folder in the list. In the View Sources I only see the scripts mentioned at the end of the...
View ArticleNew Post: How to debug the Javascript code
I was running the application with MVC 4, without MVC 3. I installed MVC 3 and reinstalled Mileage Stats. It works now, although I do not know why. I see all the .js files under the Debug folder.
View ArticleNew Post: Models in different layers
In Project silk there are Models in MileageStats.Model and also in the Business layer MileageStats.Domain. Does anyone know why there is a class User in both Projects, the only difference is that User...
View ArticleNew Post: Models in different layers
Hi, Based on my understanding, the models located at MileageStats.Model are simple models representing the entities of the data base, and are used to retrieve and store the data in it thought Entity...
View ArticleNew Post: Models in different layers
Thanks for answering. I have one more question regarding Project silk. The domain Project includes handlers but also Service-classes. What is it that separates a Handler from a Service?
View ArticleNew Post: Models in different layers
Hi, The documentation describes the handlers in the domain project as " a set of classes that implement the core behavior of the application ," where each handler is in charge of performing only one...
View ArticleNew Post: IQueryable in IEnumerable
Hi In the documentation of Project silk it says following:"In Mileage Stats, the implementation of the iReminderRepository calls Tolist before returning the iEnumerable<T>. This is to ensure that...
View ArticleNew Post: IQueryable in IEnumerable
Hi, Based on my understanding, it is as the documentation says. This is due to a quality of the object oriented programming languages named Polymorphism. Basically, the IQueryable interface inherits...
View ArticleCommented Issue: Multiple errors when running initial build [8126]
I tried the OpenAuth fix in web.config and that did not resolve that issue either, but here is a list of all the build errors I'm getting below. Also the NuGet installation working without issue....
View ArticleNew Post: IServiceLocator in project Silk
In project Silk they use IServiceLocator to get an instance of "Handler" classes, what is the benefit of using this? I mean in the controllers it looks like this:...
View ArticleNew Post: IServiceLocator in project Silk
Hi, I believe that the main objective of the Using method is to simplify the creation of the handlers. Let's take for example the ReminderController and the AddReminderToVehicle handler. If you want to...
View ArticleNew Post: IServiceLocator in project Silk
Thanks for a good answer. They could have done this by using only the unity container. Msdn says:"In the following situations, it may be appropriate for you to use the IServiceLocator:•You are an...
View ArticleNew Post: IUnitOfWork in project silk
Hi I project silk they are using IUnitOfWork in the BaseRepository class. Is that really necessary? The BaseRepository is adjusted to use with EF dbContext so its not an abstraction for the context in...
View ArticleNew Post: IUnitOfWork in project silk
Hi, I believe that maybe the interface was planned to provide an abstraction layer between the data context and the repositories (besides the BaseRepository, no sub repository implementation access the...
View ArticleNew Post: Performance issue
Hello. I found lots of filtering are performed after getting all data from DB. Because the repository layer and business layer all return IEnumerable<>. Does it affect the performance a lot?...
View Article