[ASP.NET Core 1.0] Automatic Migrations in Entity Framework 7 (EF Core 1.0)

There is no more public Configuration() { AutomaticMigrationsEnabled = false; } in Entity Framework Core 1.0 (formerly  EF 7.0) Now you can use extension Migrate method during database initialization. For example, you have custom DBInitializer class: public class DBInitialization { public static void Initialize() { using (var context = new DbContext()) { context.Database.Migrate(); // Other… Read More »

ZohoPeopleTimeLogger v1.3 – Show me the error

At Novility, we have  found that we cannot log working time anymore. You just press “Make me happy” button and nothing 🙁 When ZohoPeopleTimeLogger tries to make you happy it needs information about current jobs from ZOHO. For example, if I try to log time for January 16 and there is no job for this date… Read More »

[IoT] Connect Intel Galileo Gen 2 to Arduino Uno via nRF24L01

Guys from Newark element14 have sent me a nice dev board – Intel Galileo Gen2. I was curious because before, Microsoft declared that Windows 10 IoT Core will run on this board. I planned to run my previous benchmark on this board to see if it can beat Raspberry PI 2. Unfortunately, with the latest release they removed… Read More »

Build and test ASP.NET 5 application using AppVeyor

For those who do not know, AppVeyor is Continuous Integration and Deployment service for .NET projects. It is free for open-source projects. Currently, AppVeyor supports latest DNX version (1.0.0-rc1-final) and I’ve recently migrated my pet project to this version. I will show you how easy it is to build and run all unit tests on CI… Read More »

[ASP.NET 5] Lazy DBContext initialization with Entity Framework 7

I will show you how to do lazy db context initialization with Entity Framework 7. The idea is simple, we need an easy way to get database context in a request. If db context was used in the request we should call SaveChanges method and dispose used context if not we shouldn’t do anything. For “client”, code… Read More »

[WPF][MVVM] TreeView: Scroll To Selected Item

Here is the MVVM way to bring selected TreeViewItem into a view. First we need an attached behavior. We cannot use regular behavior because we will attach this property through Style. public class BringSelectedItemIntoViewBehavior { public static readonly DependencyProperty IsBringSelectedIntoViewProperty = DependencyProperty.RegisterAttached( "IsBringSelectedIntoView", typeof (bool), typeof (BringSelectedItemIntoViewBehavior), new PropertyMetadata(default(bool), PropertyChangedCallback)); public static void SetIsBringSelectedIntoView(DependencyObject element, bool… Read More »

[ASP.NET 5] Production Ready Web Server on Linux. Kestrel + Supervisord

In the previous article I’ve used nohup + su + init.d script to run kestrel in a background. But as Daniel Lo Nigro suggested in comments it’s much easier to do the same with Supervisor And he was absolutelly right, config is much smaller, and you can easelly see status and output of a program. First,… Read More »

ZohoPeopleTimeLogger v1.2 – Special for Andre

Because Andre is so special, the previous version of ZohoPeopleTimeLogger was not working with his account. I’ve fixed couple issues in the program to make him happy. Now, my friend, you can enjoy this lovely program! This release (v1.2) is dedicated to you! Download Now seriously! There was a small issue in a way I got information… Read More »

[C#] Zoho People Client Library

 Zoho People Client v1.0.0 released. ZohoPeopleClient – C# asynchronous client library to interact with the Zoho People API. Supported API TimeLogAPI (Get/Add/Delete) JobsAPI (Get) LeaveAPI (GetHolidays) FetchRecordAPI (Get) NuGet Package Source Code GitHub Current Release Build Status Examples Sign in with login and password var client = new ZohoClient(); var token = await client.LoginAsync(login, password);… Read More »