Monthly Archives: December 2012

One of the best CRUD sample for Windows 8 store app

You can learn how to build a simple CRUD in Windows 8 here http://code.msdn.microsoft.com/Using-SQLite-in-a-Windows-c16aea77 with XAML and C#. If you hit compilation error because of ex than change catch { var sqlExp = ex asSQLiteException; to   catch (SQLiteException ex) … Continue reading

Posted in .Net | Tagged , | Leave a comment

What happen to the last week of every year?

Obviously holiday mood by look at the WordPress stat. I was like that for the last 2 years. Happy New Year!

Posted in Community | Tagged , | 1 Comment

The selected certificate cannot be used to determine the Federation Service

When you install AD FS (Active Directory Federation Service) and you cannot continue to configure because of the error above “the selected certificate cannot be used to determine the Federation Service”. What you need to do is to create a … Continue reading

Posted in .Net | Tagged , , | Leave a comment

Quick start with TypeScript

Download the msi installer at the url below. http://www.microsoft.com/en-us/download/details.aspx?id=34790 Install the TypeScript library. Start VS 2012. Select File -> New -> Project… Select HTML Application with TypeScript from the template.   Click ok. You will see app.ts file in the … Continue reading

Posted in .Net | Tagged , | Leave a comment

Drop database connection using SQL management studio

If you search for “drop all database connection” in google then you will get a Sql statement as follow. ALTER DATABASE dbName SET SINGLE_USER WITH ROLLBACK IMMEDIATE The video below shows how to use SQL management studio to achieve this task. … Continue reading

Posted in .Net | Tagged | Leave a comment

CRUD using Entity Framework in .NET Framework 5.0 – (Read)

This article covers ways to read from Entity Framework; read all the records, filtering records, group records and sort records. http://support.microsoft.com/kb/2791121/en-us?wa=wsignin1.0

Posted in .Net | Tagged | 2 Comments

ASP.NET MVC4 Web API routing

By the default, when you create Web API out of the box of Visual Studio 2012. You will get a Values controller by ValuesController.cs. Below is the default content. public class ValuesController : ApiController {   // GET api/values   … Continue reading

Posted in .Net | Tagged , , , | 2 Comments

CRUD using Entity Framework in .NET Framework 5.0 – (Part 1 Create)

See the step by step how to create row using Entity Framework 5.0. http://support.microsoft.com/kb/2780458/en-us

Posted in .Net | Tagged , | 2 Comments