Geeks With Blogs

News
Daniel Garcia Let's code something up! .net
Introduction to Dependency Injection with Unity
After a little introduction to Inversion of Control and Dependency Injection, we'll see how DI containers behave in a real-world application. To do so, we'll talk about Unity, developed by Microsoft and belonging to the Enterprise Library package. Therefore, Unity is a Dependency Injection Framework or DI Container. It can be downloaded from Codeplex or using NuGet from inside of Visual Studio. We'll use this last method in our example. Let's begin creating a new Console Project which will be called, ......

Posted On Thursday, January 23, 2014 4:49 PM

Inversion of Control and Dependency Injection
Inversion of Control and Dependency Injection aren't brand new, but they date back to the late 80s. Anyway, these concepts are quite popular right now due to the close relation which mantains with Frameworks like Spring in Java or Unity in .NET. Inversion of Control The IoC (Inversion of Control) concept was first adopted by Martin Fowler, designer of the MVVM (Model View View-Model) design pattern. Fowler defined the concept on a informal way designating it as Hollywood Principle, which states the ......

Posted On Friday, January 17, 2014 4:45 PM

Simulation of mouse and keyboard on third-party applications
Simulation of a key press or key combination, or even a mouse click in your own application is relatively easy: using SendKeys method is enough to our application to receive data from the keyboard, and the proper explicit invocation of the mouse associated event to simulate a mouse-click. However, if we desire to create an application which mission consists to do these operations over a third-party applicatino, we must make use of unmanaged code. Managed and unmanaged code. Managed code is the code ......

Posted On Monday, January 13, 2014 5:10 PM

Portable databases (II): using SQLite with Entity Framework
On the previous post, we saw that it's possible to make use of ADO.NET to create an application that uses SQLite as database. Thereby, with a local database widely used, it's possible to radically enhance the portability of our application if it doesn't require the power of a "traditional" database engine. Anyway, using ADO.NET directly implies to leave aside all the progress implemented by Microsoft along these years in object-relational mapping topics. Supposing we know how to use Entity Framework, ......

Posted On Sunday, December 22, 2013 4:37 PM

Portable databases: using SQLite with .NET
Most of applications we develop on .NET in a professional way use to imply the existence of a database, usually SQL Server, Oracle, DB2 or MySQL. Nevertheless, sometimes, even we need database support, it's not necessary to mantain a database manager, because its portability, licensing, data volume and complexity... In Android, each application uses a single local SQLite database. Why not applying the same philosophy to a .NET application? Well, it's possible to encapsulate the database in a .db ......

Posted On Sunday, December 22, 2013 3:18 AM

Copyright © Daniel Garcia | Powered by: GeeksWithBlogs.net