Skip to main content

Posts

Showing posts from September, 2011

Knockoutjs MVVM using Java Script

During the past working days I have been a little confused about some concepts in the KnockoutJS and how stuff works in the hierarchy we are using, how should we bind stuff. First of all to get a brief introduction on KnockoutJS , it is a java script library written to apply MVVM pattern on html or ASP MVC ”if you do .NET ” and by MVVM we can only say the word that we used very often while doing Silverlight or WPF, the word is BINDING the magical word that simply makes the speed and interactivity between your model and view irresistible, do we use binding yes !!! and boy this is one sexy word that I would love to use, binding was one of the strongest points that Silverlight had, thanks to knock out we can do it here you can take a quick overview from the magnificent Steve Sanderson “the creator of the library” he has made an appearance in MIX 11 and he sure made the impression check out the KnockoutJS site from here http://knockoutjs.com/ and here is a the video link available

A generic Repository Interface that Can Be implemented on any POCO Entity

Ok Probably whats on your mind here is what the heck is he talking about ? and that is what about to say now. What I want to do is Make a Generic Repository Interface that can be used for any entity so for instance if I had more that one POCO “Plain Old C# Objects” All I need in my repository layer is just EntityNameRepository class that Inherits from the generic Interface, and though less interface implementations, Less dependencies, more testability and less code equals more fun, So here is the Interface Class and that's it just inherit implement and off you go !!!