Recently I have been playing with structure and It’s fun. In this blog post we are going to learn how we can use operator overloading with structure in C#. You can find my blog post that I have already written about structure at following location.
Structure in C#
Structure with constructor in C#
Structure with Interface in C#
So as usual I've created a console application to demonstrate...
Sunday, April 19, 2015
Structure with Interface in C#
Recently I have been playing with Structure and it is fun. I have written couple of blog post about structure. Following are links for that.
Structure in C#
Structure with constructor in C#
In this blog post we are going to learn how we can use structure with interface. So like earlier example I’ve created a console application. Now it’s time to write interface which we can implement with structure....
Friday, April 17, 2015
Structure with constructor in C#
Before some time , I have written basic introduction post about Structure in C#. In this blog post we are going to see how we can have constructor with Structure. As we all know structure is a value type so it stored on stack. So let’s create a structure like follow with constructor.
public struct Customer
{
#region Fields
public int CustomerId;
public string FirstName;
public string...
Wednesday, April 15, 2015
Structure in c#
In this blog post we are going to learn about Structure Data structure in C#. In C# Structure is value type which stores on Stack. It is a composite value type that contain other types. You can also create object of structure like class. In C# structure can contains fields, properties, constants,...
Tuesday, April 7, 2015
Entity Framework Code First and MySql on Azure
We have used Entity framework with SQL Servers mostly. In this blog post we are going to see how we can use Entity framework with MySql on Azure.
How to create MySql database on Azure:
On azure MySql is not maintained by Microsoft itself. It is provided their partner cleardb. So You need to search...
Sunday, April 5, 2015
Best coding standards checklist for C# and ASP.NET
Before some time I have written a blog post about coding standard Why coding standards are important?. It was appreciated by lots of people and few people asked me whether do you have coding standard checklist or not? So Today, In this blog post I’m going to shared few link for coding standard checklist which I follow.
Aviva C# coding guidelines:
An awesome guideline for the C# 3.0,4.0 and 5.0....
Entity Framework Internals: Connection Resiliency
When you use cloud services to deploy your application and database it might be possible that transient connection will be a problem between database server and web servers. When you use on premise servers that uses the database server and web server on same data centre. When you use cloud there will be huge infrastructures and you never know where it is deployed even if it deployed on same data...
Thursday, April 2, 2015
Quick Tip–How to get time difference in C#
Recently, One of the reader of this asked me about, how we can get time difference between two dates or two times? So I thought it will be a good idea to write a blog post about that. So that other use can also get benefit from that.
For that I have created sample console application like below.
using...
Quick tip- How to change menu bar letter style in visual studio 2013 and 2015
When Microsoft has introduced, Visual Studio 2012 with Upper case menu, There were so many reactions from the developers. So with Visual Studio 2013 Microsoft has provided that settings to Turn of capital letters for menu. I have just came to know that accidentally. You can find that settings in Tools->Options-General...
Wednesday, April 1, 2015
Entity Framework Internals: Private setters and private constructors
I have been heavily learning Domain Driven Design recently and In that there is a concept called “Anemic Domain Model” which we used to use in our project. In simple terms Anemic Domain Models are those classes that do not have any behaviour with them and most of created with properties. You can use them as container for your data from database. While Domain driven design is all about behaviours....