11+ Year IT Industry Experience, Working as Technical Lead with Capgemini | Consultant | Leadership and Corporate Trainer | Motivational and Technical Speaker | Career Coach | Author | MVP | Founder Of RVS Group | Trained more than 4000+ IT professionals | Azure | DevOps | ASP.NET | C# | MVC | WEB API | ANGULAR | TYPESCRIPT | MEAN | SQL | SSRS | WEB SERVICE | WCF... https://bikeshsrivastava.blogspot.in/ http://bikeshsrivastava.com/
Thursday, January 18, 2018

What is differences between MVC 2, MVC 3, MVC 4, MVC 5 and MVC 6 ?

“What”? ‘Why” and “When”?
This article introduces to 55 key Features for MVC newest and oldest versions and also will we have many differences in between MVC 2, MVC 3, MVC 4, MVC 5 and MVC 6 and let’s explore in detail without writing the code.

Try the live example of the vNext code shown in this page!
10 Key Features – MVC 2
1)     MVC 2 Added Templates Helpers.
2)     MVC 2 Added Model validator Provider.
3)     MVC 2 Added Client-Side Validation.
4)     MVC 2 Added Html Validation Summary Helper Methods.
5)     MVC 2 Added Display Model Level Error.
6)     MVC 2 Added Require https Attribute Action Filter.
7)     MVC 2 Added Asynchronous Controllers.
8)     MVC 2 Added Default Value Attribute in Action Methods.
9)     MVC 2 Added Binding Binary Data to Model Binder.
10) MVC 2 Added Data Annotations Attributes.

10 Key Features - MVC 3
1)     MVC 3 introduced a popular new feature that is called Razor.
2)     MVC 3 introduced a new feature that is called Bundling.
3)     MVC 3 Start supporting to multiple views (Razor) engines.
4)     MVC 3 introduced a popular new feature that is called ViewBag dynamic property.
5)     MVC 3 introduced a popular new feature that is called ActionResult Types.
6)     In MVC 3, added separates the functionality approach over the JavaScript in the presentation layer that is called to UX.
7)     MVC 3 starts supporting to the HTML5 and CSS3.
8)     MVC 3 added enhancement to validate a model.
9)     MVC 3 improved the Dependency Injection by using the IDependency Resolver interface.
10) MVC 3 added output caching for Partial views.

9 Key Features - MVC 4
1)     MVC 4 introduced a popular new feature that is called Web API framework. And its work over the HTTP services.
2)     MVC 4 added and improves to default project templates.
3)     MVC 4 introduced to empty project template.
4)     MVC 4 introduced to new mobile project template.
5)     MVC 4 is going to support and adding controller to other project folders.
6)     MVC 4 is going to support the Asynchronous Controllers.
7)     MVC 4 introduced to bundling and Magnification concepts.
8)     MVC 4 introduced to OAuth and OpenID login with the help of DotNetOpenAuth library.
9)     MVC 4 going to support to Windows Azure SDK 1.6.

5 Key Features - MVC 5
1)     MVC 5 introduced to ASP.NET Identity for authentication and identity management.
2)     ASP.NET Identity is a new Membership provider to handle the authentication and authorization for social networking site just like Google, twitter, face-book etc.
3)     MVC 5 added  to authentication filters for authenticate to users using  third party authentication provider or your custom logic by using filter override methods and now we can override to filters on  method and  controller both.
4)     MVC 5 replaced to bootstrap by using the default template.
5)     MVC 5 added new to Attribute Routing [Route ("Empolyee/{EmpID}")].

Example for Routing code looks like as,

Attribute routing work with both ActionResult and Controller i.e.

[RoutePrefix("API/Company")]
public class CompanyController : BaseAPIController
{
    [Route("Employee/{EmpId}")]
    public ActionResult GetEmployeeById(string EmpId)
    {
        //TODO: Put your logic here.    
        return View();
    }
}

11 Key Features - MVC 5
1)     Empty Template
2)     Internet Application Template
3)     Intranet Application Template
4)     ASP.NET Web API Template
5)     Mobile Project Template
6)     Single Page Application (SPA)Template
7)     Asp.Net Identity
8)     Bootstrap in the MVC 5 templates
9)     Authentication Filters and Filter overrides

11 Key Features - MVC 6 or vNext
1) MVC 6 Added new cloud computing optimization system of MVC, Web API, SignalR and entity framework.
2) The Microsoft makes a bundle of MVC, Web API, WebPages, SignalR, that bundle we called MVC 6.
3) In MVC 6, Microsoft removed the dependency of system.web.dll from MVC 6 because it's so expensive. Typically it consumes 30K memory per request/response.
4) Right now, in MVC 6 consume 2K memory per request response. It's too small memory consume.
5) Most of the problem solved using the Roslyn Compiler.
6) Added a Start-up class that replaces to global.asax file.
7) The Session state and caching adjusts our behaviour depending on your hosting environment.
8) Host agnostic.
9) True side-by-side deployment.
10) The vNext is a cross platform and open source. And it's also supported to Mac, Linux, etc.
11) It is also added to TagHeaplers use to creating and enables server side code on HTML elements in the razor view i.e.
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
12) The work of Roslyn compiler as given below image.
13) The ASP .Net vNext used the Roslyn Compiler, by using Roslyn compiler do not need to compile the application its compile automatically the application code.
14) The .Net vNext has the new project extension project.json. Basically project.json contains the all dependency DLL of the application.
15) In MVC 5.1 and 5.2 supports to Enum and EnumHelper in razor views.

Try the live example of the vNext code shown in this page!


I hope you are enjoying with this post! Please share with you friends. Thank you!!

What is blockchain and what are some applications of blockchain?

What is blockchain and what are some applications of blockchain?

First, what is blockchain and how it differs from bitcoin?

Blockchain is the technology behind bitcoin, ether, and most other cryptocurrencies. Bitcoin is merely just one application of Blockchain and in this article we will explore the many other applications of blockchain.
Blockchain is essentially a way of keeping records and can be used in almost any product that uses some sort of record keeping or database management. Blockchain is great for protecting any data that needs to be tamper-resistant, and indestructible.
Traditionally, data is kept in a server which is owned and operated by a third party company. This has some disadvantages: A 3rd party has access to your data, it might be destructed, it might be tampered, and it might be leaked. Using blockchain, the data is encrypted and then spread in a distributed network of computers. This way, it is not owned by anyone, it cannot be destructed, and it cannot be tampered with.


A block of data is a permanently recorded set of data, such as a financial transaction. The data is first hashed, which is a way a representing the data in a compact format where it could be easily compared for any changes. Any small changes in the data completely changes the hashed version which makes comparison super easy. Then the hashed data is encrypted. A private key allows the producer of the data to encrypt the data and serves as a digital signature whereas a public key allows everybody else with the key to decrypt it.
Then the blocks of data are connected to each other (chained). The unique thing is that each block not only contains its own data, but also the hashed version of the data of the previous block in the chain. This means that changing data of a single block would break a chain and the tampering would become evident.
Imagine a hacker with high computing power who controls a critically high number of the nodes in the network. This way, the hacker is able to change the data in subsequent nodes and tamper the data. Blockchain has one extra layer of security which comes from the genius of its mythical inventor, Satoshi Nakamoto. For each new block to be added to the chain, it needs to be verified. This verification process is extremely computationally heavy and therefore the cost of taking over a large proportion of a blockchain outweighs any possible benefits.

What are some blockchain applications? What type of blockchain-based startups can exist?

Blockchain is still in its infancy and is going through a technology maturation period similar to many other technologies. We can compare this to the evolution of TCP/IP protocols into the World Wide Web, into static websites and then to Web Apps.
I will categorize the blockchain companies into infrastructural (I), application-level (A), and ecosystem level (E). There needs to be many infrastructure level companies who provide the backend and APIs to other companies who build applications based on blockchain. There will also be ecosystem level companies which will serve the companies in the blockchain industry (e.g. news outlets, consultancies, analytics software, etc).
Below I summarize the various types of companies which can be based on blockchain. Obviously, this is not an inclusive list, so please comment the other types of companies that you know or can think of.
I also made the use cases that I think are promising and most useful, Italic.
Financial Services — Consumer
  1. International Transfer (A)
  2. P2P Payments (A)
  3. Microfinance (A)
  4. Peer-lending (A)
  5. Investment (e.g. ICO) (A)
  6. Micro Charity (A)
  7. Escrows (A)
  8. Smart Contracts (programmable, self executing and self-enforcing contracts (A)
Financial Services — Enterprise
  1. Investment Bank Smart Contracts (fast transaction settlement) (A)
  2. Trades (connecting NASDAQ to Bank of America on blockchain) (I)
  3. Audits (A)
  4. Anti-money laundering (A)
  5. Underwriting and Know your Customer (A)
  6. Insurance (A)
Non-Financial Services — Government to Citizens
  1. Records Management (e.g. titles, deeds, etc.) (A)
  2. Identity Verification and Issuance (A)
  3. Transparent, low-cost Voting (A)
  4. Tax collection/disputes, etc (A)
  5. Government Transparency (A)
  6. Regulatory Oversight (A)
  7. Permits (e.g. Gun) (A)
  8. Smart Contracts (A)
  9. Wills/Trusts (A)
  10. Patents/Copyrights (A)
  11. Clinical Trial data integrity (A)
  12. Illegal fishing, etc (A)
Non-Financial Services — Enterprise
  1. Supply Chain Management (A)
  2. Health Care and medical record sharing (A)
  3. Media Distribution (A)
  4. E-commerce with no middleman (A)
  5. Sharing economy with no central authority(A)
  6. Authenticated News Sharing/Data Sharing (A)
  7. Collaboration between companies knowing who owns what (A)
  8. Data Sharing Between companies (A)
Non-Financial Services — Consumer
  1. Energy Management (Selling/Buying to/from grid P2P) (A)
  2. Authenticated certificates/grades/degrees (A)
  3. Secure Medical Records and Genome Records (A)
  4. Secure Accounting (A)
  5. Tracing valuable items such as diamonds, wines, brand clothing (A)
  6. Tracing sources of food ingredients, clothing, etc. (A)
  7. Smart Contracts (A)
  8. Digital Content Distribution (Articles, Music, etc) (A)
  9. Drug Tracing (A)
  10. Prediction marketplaces (A)
Infrastructural
  1. Data Storage (I)
  2. Cyber Security (I)
  3. Database Management (I)
  4. Internet of Things Data Network (I)
  5. Blockchain Search (I)
  6. Distributed Computing (I)
  7. Bitcoin, Ether, Eris, etc (I)
Ecosystem Level
  1. Blockchain News Outlets (E)
  2. Blockchain Analytics Software (E)
  3. Blockchain consultancies (E)
  4. Blockchain investment funds (E)
Generally I think a lot of the existing companies would adapt Blockchain and it is hard to differentiate and compete with an already existing company if the only differentiation is using blockchain.
Blockchain is mostly useful when it eliminates a third party whose main responsibility is maintaining trust (e.g. banks) and the most promising start-ups in blockchain would be in the infrastructure/API level so that other companies improve their already existing solutions based on these start-ups. Blockstack, BlockCypher, Brave, and BitMark are my favorite blockchain startups.
On the application level, companies who help businesses and consumers trace and authenticate a product and its source are the most valuable.
Do let me know in the comments what you think about these categories, and the other unique applications that you know about or can think of!
Bikesh Srivastava Blockchain

Immediate requirement for fresher ASP.NET Developers (0-1 year Exp.) in Noida.


We are hiring for ASP.NET Developer in USA/Noida based IT company.
Immediate joiner most prefer. Send your updated resume on 
bikesh1988@gmail.com or ping/call me on WhatsApp 
08802592478

Eligibility: B.tech(IT,CS,EC),MCA
Technology: HTML,Javascript,Jquery,OOPS,ASP.NET,C#,SQL (6 month training must on Asp.net C#).

About Company:
HyTechPro, established in 2003, is a leading next-generation IT services provider. Ranging from management to consultation, we define, design and deliver technology-enabled business solutions leveraging enterprises to win the marketplace. With the expertise in varied domains and strategic alliances, we offer high-end services to enterprises across the globe.
As a fast growing IT services company, our business model is unique and crafted based upon robust adaptability, reliability, and scalability. Our adroit team of professionals always strive to serve the best-in-class offerings that meet cutting-edge business requirements.
Company website: https://www.hytechpro.com/
Address: A-89 Sector 63 Noida
Bikesh Srivastava Latest Job

Life Is Complicated, But Now programmer Can Keep It Simple.