It took me too long to figure this out, so hopefully it will help you. StructureMap has way that will create a new instance of the object every time, instead of storing this in the container. I’m going to use this for the DBContext and for WCF Service references. Since the ObjectFactory is a static class, MVC will have these stored in memory without this. Credit goes to Joshua Flanagan for answering my question.[TestMethod] public void GetConcreteInstanceOf_Shoul... { ObjectFactory.Initialize(re... ......
I did a short presentation at work to show off some of the capabilities of Knockout Js. Here’s a link to the read-only code from the Cloud 9 account. https://c9.io/aligned/knock... you're looking for an in-depth tutorial, I highly recommend John Papa's Pluralsight course ......
MVVM Light has Messaging that helps keep View Models decoupled, isolated, and keep the separation of concerns, while allowing them to communicate with each other. This is a very helpful feature. One View Model can send off a message and if anyone is listening for it, they will react, otherwise nothing will happen. I now want to do the same with KnockoutJs View Models. Here are some links on how to do this: http://stackoverflow.com/qu... ......
I have several database tables that have a description column that I need to display in the UI. .Net has .resx files that will help with the translation of the strings, when the Thread.CurrentCulture.UICul... is set, but I needed a custom approach for the strings that are stored in the database and not in the .resx files. Note: this will only work for static tables that are added to at development time, because each addition will require an addition to the resx file for each language and a re-deployment ......