Tags » C#

Disabling Entityframework Migrations

I have found a couple ways migrations can be turned off. The version of Entityframework you are using may determine which method you use.

The first method is to set the AutomaticMigrationsEnabled property to false in the DBMigrationsConfiguration class. 313 more words


Distributed transactions for SQL Azure using EntityFramework 6

So I had a conversation with someone the other day who mentioned they were having problems with MS DTC not being available in SQL Azure which was causing problems for them as they wanted to use a TransactionScope. 198 more words


Beauty and the Beast

Sarah & Charlie. Shot with Nikon D40 + AF-S DX NIKKOR 35 mm f/1.8G, 35 mm, f/4.5, ISO 1600, 1/50 sec, 0.00 eV, RAW, Lightroom 5, Silver Efex Pro 2 (2015)


Designated Initializers

Source: http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Designated-Inits.html#Designated-Inits

I’m re-blogging this page from above mentioned link as these information I find very interesting and helpful for me, and to find these info in my blog easily at times of need. 528 more words


How to remove html tag in c# string?

public static string StripTagsRegex(string source)
source = Regex.Replace(source, “<.*?>”, string.Empty);
return source;


Least difference between any two elements of an integer array in C#

Find the least difference between any two elements of an integer array.

I/P: {1000, 1003, 0, 11, 21 }

O/P: 3

class Least_Difference_Elements_In_Array
static void Main(string[] args)

59 more words

Queues in Data Structures using C++

using namespace std ;

int rear = -1 ;
int top = 0 ;
int que ;
void enque ( ) ;
void deque ( ) ; 165 more words

C++ Programming