Posts

Showing posts from August, 2017

Difference between @angular/core and angular 2/core

Basically these two reference we used when we import some classes like 'Component' and we used the classes in our typescript(.ts) file . Initially when angular 2 was in Beta version we were using the namespace angular2/core to import any class in our typescript file. But when angualar 2 was released in RC(Release Candidate) mode then we used @angular/core  to import any class in our typescript file. In Release  candidate mode Angular team repackaged all the packages and distributed @Angular npm scope. So one thing i just want to mention here that when you will used this "angular2/core", you should see a folder structure in your application root folder like   E:\Projects\Demo\node_modules\angular2\core But If you will import any class by this reference "@angular/core",then you should see the folder structure like this  E:\Projects\Demo\node_modules\@angular\core  Note:  This folder creation will done npm .When you will execute the command '...

Angular 2 application using Visual studio 2015

Image
              As we know between Angular 1.x.x and Angular 2.x.x has a huge difference . Although Angular 2 has an upgrade of Angular 1 but it has a lots of differences. Angular 2 is a complete rewrite of Angular 1.               So before creating any angular 2 application we need to first configure the environment.Angular 2 application is a dependent of lots of packages and we manage this packages by npm.               So we will divide the complete blog into two parts.In first part we will cover on set up/configure the system for angular 2 application and in the second part we will create our first angular 2 application using visual studio 2015. Part 1: These are the steps to set the environment to develop Angular 2 application: Step 1:  Required IDE - Visual Studio 2015(update 3).  Step 2:  Download and Install NodeJS from https://nodejs.org/en/download/ ...

The transaction is aborted or Failure while attempting to promote transaction.

This error is generally produced while you working on the  Linq query with Entity framework and there was some other system configurations like Visual studio 2015. Entity framework version 4. C# 4.5 But while I checked the Inner exception I got the following message  "There is already an open DataReader associated with this Command which must be closed first" So in my case there was some WCF services and from the WCF services I was extracting the data by Linq query . This was code  Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 using (TransactionScope scope = new TransactionScope()) { using (CentralisedData_DataDataContext db = new CentralisedData_DataDataContext()) { // Some code was there } db.SubmitChanges(); ...