Entity Framework in .NET and MySQL tinymce(1) problem

You know at tinymce(1) field in MySQL database will be converted to boolean type in C#. Sometimes you don’t want this because you just want to read the integer value from MySQL in this field (it can be any from 0-255 if unsigned or -127-127 if signed) – one byte.

In order to do so you need to do two things:

  1. Add TreatTinyAsBoolean=false to your connection string
  2. Edit the database edmx file and in SSDL content section change bool to tinyint, and in CSDL content section change Boolean into SByte.

Be careful if you update edmx file because changes you have made will be lost. This is the bad thing about this, but it is working solution.

Continue Reading

Microsoft .NET to run on Linux and Mac OS X

Microsoft .NET will finally run fully on Linux and Mac OS X platform and this is a great news.

Visual Studio is maybe the best tool for developers and Microsoft decided to open sourcing the full server-side .NET Core stack, from ASP.NET 5 down to Core Runtime and Framework.

Microsoft is also giving for free Visual Studio Community 2013 full featured edition of Visual Studio, available today.

You can watch more about this here.

Open source links
ASP.NET – https://github.com/aspnet/home
.NET Compiler – http://roslyn.codeplex.com/
.NET Core – https://github.com/dotnet/corefx
.NET – https://github.com/Microsoft/dotnet

Continue Reading