C# Corner

Resources  
  • Angular, Bootstrap and ASP.NET MVC - Bootstrap Form Controls - Part EightFeb 23, 2018. In previous articles we have learned AngularJS project setup, styling with Bootstrap, AngularJS structure, data-binding, routing, copying of Angular objects when a form is saved or canceled, inserting/updating forms, Bootstrap modal forms, and more.
  • Insert And Display Records With Model Binder Using ASP.NET MVCFeb 23, 2018. In this blog, I am going to explain how to insert and display records with Model Binder using ASP.NET and Entity Data Model (DB First Approach).
  • Creating PDF In ASP.NET Core MVC Using Rotativa.AspNetCoreFeb 20, 2018. In this article, we are going to learn how to use Rotativa.AspNetCore tool to create PDFs from Views in ASP.NET Core. If you have worked with ASP.NET MVC, the Rotativa tool is already available there, which we can use for generating pdfs.
  • Using Azure Face API With ASP.NET MVCFeb 19, 2018. In this article, we are going to learn how to User Azure Face API with ASP.NET MVC in a step by step way.
  • ASP.NET MVC - Sending SMS Messages Using Nexmo APIFeb 18, 2018. In this article, we will demonstrate how we can send an SMS message from Asp.Net MVC application using Nexmo SMS API.
  • Application Initialization And Configuration In ASP.NET VersionsFeb 14, 2018. Most of us might have worked upon various versions of ASP.NET and few of you must be aware about the major changes happened in application initialization and configuration phase. In this article, I'll be outlining few of those major changes starting from ASP.NET MVC, ASP.NET Core 1.x and ASP.NET 2.x.
  • Deploying VM Using ARM TemplateFeb 14, 2018. Azure Resource Manager (ARM) Templates are JSON files which define the resources which you need to deploy for your solution. ARM templates are community contributed and can be used by anyone from GitHub. This repository holds various predefined ARM templets to choose from has per your needs. But to get started with ARM templates we will be configuring a simple virtual machine deployment from scratch so we can understand easily.
  • ASP.NET MVC - Export PDF Document From View PageFeb 13, 2018. In this article, we will learn how we can export view page to PDF using Rotativa framework. Rotativa is an open source framework created by Giorgio Bazio in order to export view page to PDF. This framework is based on wkhtmltoPDF tool which is used to generate PDF from HTML view page.
  • Design Patterns Simplified - StrategyFeb 13, 2018. This article explains what Strategy Design Pattern is and how to use it in software design and development.
  • Chat Application With ASP.NET MVC Using RabbitMQFeb 08, 2018. In this article, you will learn how to develop a chat application in ASP.NET MVC using RabbitMQ.
  • Multiple Submit Buttons In ASP.NET MVCFeb 06, 2018. Let's learn how to create multiple "Submit" buttons in ASP.NET MVC.
  • Automating SVN Check-Ins And Building A Project Via JenkinsFeb 05, 2018. A few weeks back, while sitting with my team, I learned that they run a Jenkins job which has to execute the automation scripts using the robot framework, daily around 1:00 a.m. The primary purpose of the job is to place all the necessary files and folders over the node machine of Jenkins (after copying them from the machine pointed as master on Jenkins), execute those scripts accordingly, generate the reports, and finally copy the output files back to the master machine to analyze the logs for the overall reporting and analysis purposes. This whole efficient job starts with a slack manual step which was enough to tag this activity 'not fully automated' because they had to place the updated work regularly on the specified path over the master machine before leaving the office (this includes taking the updated code, files, and automation scripts, building the project to take the DLLs etc.). This may sound tedious but more than that, there is no sense to do it manually.
  • CRUD Operations In ASP.NET Core 2 Razor Page With Dapper And Repository PatternFeb 04, 2018. This article will demonstrate how to perform CRUD operations in Razor Page which were introduced with Asp.Net Core 2 using Dapper and Repository Pattern.
  • CRUD Operation In MVC Using Kendo UIFeb 01, 2018. In this article, you will learn how to fully enable the Create, Read, Update, Destroy (CRUD) data operations in the Grid in Asp.Net MVC using Kendo UI.
  • Client Side Development With SharePoint Using NodeJS And PnPJan 30, 2018. Nowadays, client side development with SharePoint is growing bigger and bigger with lot of APIs emerging against SharePoint data. @PnP (PnPJS) is a new javascript API from SharePoint Patterns and Practices team.
  • Exception Handling In ASP.NET MVCJan 30, 2018. This default way of handling exception where we write our source code into the try bock and catch exception in catch block. However you can have multiple catch blocks for a try block. Even you can have Try –catch block inside Try block.
  • Cache Tag Helper In ASP.NET Core MVCJan 25, 2018. Caching tag helper can improve the performance and scalability of the application dramatically and it cache the data into the internal ASP.NET Core cache provider.
  • Overview Of Strategy Design PatternJan 23, 2018. In this article, we will learn about Strategy Design Pattern.
  • Design Patterns Simplified - Chain Of ResponsibilityJan 22, 2018. This article explains what Chain of Responsibility Design Pattern is and how to use it in software development.
  • Abstract Factory Pattern Using C# - Real World ExampleJan 22, 2018. While learning design patterns, I came to understand the most frequently used term, Factory Pattern as well as Abstract factory pattern. I searched the internet and came across numerous learning points. After a lot of search and study, I endeavored to find an actual need for the abstract design pattern.
  • Deploying Multiple ASP.NET Core Apps To Docker And AzureJan 22, 2018. API - has controller with CRUD operations for a movies database. It uses a class library Data, which contains repositories. Database is hosted in Azure and connection string stored in application settings (appsettings.json).
  • First Application In ASP.NET Core MVC 2.0Jan 20, 2018. Recently Microsoft announced anew version of Asp.Net Core and that is Asp.Net Core 2.0, which has new and amazing features which not only improve performance as well as increase productivity and enhance your application making it more robust and reliable.
  • Cab Booking And Scheduling By Using Command Design Pattern And SchedulerJan 20, 2018. This article explains the cab booking & scheduling system by using Command Design Pattern and Scheduler.
  • CRUD Operations In SharePoint Using REST API - CREATE OperationsJan 18, 2018. REST API is a powerful CSOM concept that can be leveraged in SharePoint for converting sophisticated business designs into working and efficient SharePoint Artifacts (Add-Ins, CSOM solutions, etc.). REST does not require any separate references for its working unlike other frameworks (SPservices!)
  • CRUD Operation In MVC Using Elastic SearchJan 17, 2018. Elastic search is a search engine based on Lucene. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. Elastic search is developed in Java and is released as open source under the terms of the Apache License.
  • Learn Basics Of MVC ArchitectureJan 16, 2018. Recently, I learned the basics of MVC by going through various articles. And I thought to write an article based on my learning which, I think, may help at least few who are looking forward to learn MVC.
  • Railway Ticket Fare Calculation With Strategy PatternJan 15, 2018. This article explains how to calculate Railway ticket fare by using Strategy Design Pattern.
  • Bind Menu And Sub Menu Dynamically In ASP.NET MVC From Database Using LINQJan 12, 2018. Many times we need to create a menu for a simple application. We ususally get stuck on how to bind the menu. Here in this article we you will learn how to bind menu and sub menu dynamically in ASP.NET MVC from database using linq.
  • Singleton Design Pattern In C# - Part Three (Static vs Singleton)Jan 11, 2018. In this series of learning singleton patterns, we learned lazy initialization and eager initializations with practical examples. We also learned why it is necessary to make the singleton class sealed with sealed keyword. In this article, I’ll try to explain the differences between static and singleton class and where to use static and where to use singleton classes.
  • Using Bitbucket Extensions With Visual Studio 2015Jan 10, 2018. In this article we are going to learn how to use Bitbucket Extensions with Visual Studio 2015, in the previous article we have learned how to create Bitbucket account and new repositories and push repositories to remote Bitbucket account but in that it was all manual process, but if we get little automation in it that we are going to love it right, in this part we are going to add Bitbucket Extensions to project from visual studio “Extensions and Updates” and work little faster.
  • Singleton Design Pattern In C# - Part Two (Eager and Lazy Initialization in Singleton)Jan 09, 2018. In this article, we’ll discuss Lazy initialization, the lazy keyword, why to make singleton class a sealed class and what are the differences between singleton and static class.
  • Singleton Design Pattern In C# - Part OneJan 08, 2018. I always wanted to write about Singleton design pattern in C#. Though there already are many posts available on Singleton design pattern, I’ll try to cover this topic in the most simplistic and easy to understand way.
  • State Management In ASP.NET MVCJan 08, 2018. HTTP is a stateless protocol. Each HTTP request does not know about the previous request. If you are redirecting from one page to other pages, then you have to maintain or persist your data so that you can access it further. To do this, there were many techniques available in Asp.Net like ViewState, SessionState, ApplicationState etc.
  • Using HTTPS In ASP.NET Core 2.0Jan 05, 2018. Create an empty project and update Startup to add services and middleware for MVC, including the filter for HTTPS.
  • User Specific Notifications Using ASP.NET MVC And SignalRJan 03, 2018. In this post, we are going to explore how to implement user-based notification using ASP.Net MVC & SignalR.
  • Using jTable Grid With ASP.NET MVCJan 03, 2018. In this article, we are going to learn how to use jTable Grid with ASP.NET MVC, and along with that we are going to use Entity framework for accessing the database.
  • CRUD Operations With ASP.NET Core Using Angular 5 And ADO.NETJan 02, 2018. Here, I am going to explain how to create an MVC web application in ASP.NET Core 2.0 with Angular 5.
  • Repository Pattern In ASP.NET MVCJan 02, 2018. In this article, we will learn about Repository pattern which is mostly used to create enterprise applications. Repository pattern divides application’s UI, business logic and data access components into different layers that are easily maintainable and testable.
  • Forgot Password And Reset Password Link On Email In MVCJan 02, 2018. In this article we will see how to reset the password through the forgot password page in MVC. Add an Action link on login page if the user forgets his/her password.The link redirects the user to the below page from where the user can get a reset link on the registered email id.
  • ASP.NET Core 2.0 Cookie AuthenticationJan 02, 2018. Cookie Authentication allows developers to hook into events at various lifecycle stages of the authentication process. For instance you could log successful sign-ins using OnSignedIn or use OnValidatePrincipal (runs on every request) to invalidate the user (e.g. if you want to force sign-out).
  • Custom Authentication With ASP.NET MVCDec 30, 2017. In this article, we will demonstrate how we can build authentication system using ASP.NET MVC
  • Using DataTables Grid With ASP.NET MVCDec 29, 2017. In this article, we are going to learn how to use DataTables Grid with ASP.NET MVC in step by step way.
  • ASP.NET Core And EF Core 2.0 TestingDec 29, 2017. The single biggest selling point of MVC architecture in general and ASP.NET Core in particular is that it makes testing much simpler. ASP.NET team has done a great job in making a framework that is pluggable, thus enabling testing of controllers, repositories and even the entire application a breeze.
  • Dashboard Application With ASP.NET MVC 5 And jQueryDec 28, 2017. As you know, the dashboard system has become very important because it's helpful for managers in order to take the right decisions.
  • ASP.NET MVC 5 - Full Calendar jQuery PluginDec 27, 2017. This article is about using Full Calendar jQuery Plugin with ASP.NET MVC5 server side.
  • Consuming ASP.NET Core 2.0 Web API Using HttpClientDec 26, 2017. We’ll create a library to wrap the functionality of HttpClient. I’ll use builder pattern for this purpose. Add a class with methods for storing parts of HttpClient.
  • Setting Up Add-In Development Environment In SharePoint Server 2016Dec 26, 2017. In this article, I have explained how to configure Sharepoint add-ins development environment and create a simple hello world web part in s=Sharepoint server 2016 on-premises.
  • ASP.NET MVC 5 - Buttons In Datatables jQuery PluginDec 26, 2017. Table view is one of the most important and basic forms of presenting data on a web page. However, adding action to each row is equally important simply because action for each row leads to different results. Jquery Datatables plugin is one of the most used plugins, as I have demonstrated its integration in ASP.NET MVC5 - Datables Plugin Server Side Integration in one of my articles.
  • Kendo UI TreeList Remote DataBinding With ASP.NET MVC 5 Using ASP.NET WEB APIDec 24, 2017. This article tells you how to construct the kendo TreeView with complex JSON object, which is the response of the REST API developed using ASP.NET Web API.
  • Working With Kendo UI TreeList And Custom Template In ASP.NET MVC 5 Web ApplicationDec 24, 2017. In this article, I will demonstrate how to work with KendoTreeList View and custom template in ASP.Net MVC5 using Kendo UI and EF
  • Asynchronous Messaging Using ASP.NET Core 2.0 Web APIDec 21, 2017. How to implement asynchronous messaging using ASP.NET Core Web API. Create an empty project and update the Startup class to add services and middleware for MVC.
  • Using Gijgo Grid With ASP.NET MVCDec 20, 2017. In this article, we are going to learn how to use Gijgo Grid with ASP.NET MVC along with that we are going to use Entity framework for accessing the database.
  • Application To Build Resume/CV With ASP.NET MVC 5 And jQueryDec 20, 2017. In this article, we will demonstrate how we can build resume CV application. As you know resume CV has different parts such as personal information, education, work experiences, skills, certifications, languages. We are using Asp.net MVC 5, jQuery and bootstrap in order to build our application. I hope you will like it.
  • MVC Angular CRUD Operation Using WEB API 2 With Stored ProcedureDec 18, 2017. In this article, I am going to explain how to do CRUD Operation in Asp.Net MVC AngularJS Using WEB API 2 With Stored Procedure.
  • List Of Users With Roles In ASP.NET MVC IdentityDec 18, 2017. This article demonstrates how to list users with associated user roles using Identity in ASP.NEt MVC applications.
  • ASP.NET MVC 5 - Clickable Google ChartsDec 18, 2017. This article is about Google Charts interactivity through click event on the chart.
  • Building Entity Framework Generic Repository 2 ConnectedDec 18, 2017. A few weeks ago, we looked a first article about Disconnected Repository. In this article let’s complete it with another piece off the puzzle, the connected Generic Repository.
  • ASP.NET MVC 5 - Google Charts API IntegrationDec 14, 2017. Today, I shall be demonstrating the integration of Google Charts API with ASP.NET MVC5.
  • Swift Programming - Zero To Hero - Part NineDec 13, 2017. In this article, I have shared some details about Design Patterns in Swift Programming.
  • Generate Thumbnail From Live URL Of Microsoft Office And PDF file in ASP.NET MVCDec 13, 2017. Recently, I got a chance to create thumbnail images from the live URL. The URLs were not of images but of some DOCX file, some XLSX file, or PDF file. We don’t have any custom library which can directly generate the thumbnail from a live URL. So, here, we will learn how we can customize our code to generate the thumbnail in .NET.
  • Sorting In ASP.NET Core 2.0 Web APIDec 12, 2017. Sorting information is usually received via query parameters. The POCO SortingParams simply hold this information and passes to service (or repository).
  • Using jqGrid With ASP.NET MVCDec 12, 2017. If you belong from a background of asp.net web forms then there is grid view which we used most but in some scenario if data was large then it would use to break, but in MVC we do not have that kind of grid which has all readymade event, but there is html helper which help you to generate html is Web grid in that we need to use different package for handling paging of grid, and also we need to pass a strongly typed model to view for rendering the grid.
  • Paging In ASP.NET Core 2.0 Web APIDec 11, 2017. Paging information; i.e., page number and page size, is usually received via query parameters. The POCO PagingParams simply holds this information and passes it to service (or repository).
  • Integrate Google ReCaptcha And Validate It With ASP.NET MVC 5 And Entity FrameworkDec 11, 2017. In this Article, I will demonstrate how to integrate Google ReCaptcha and Validate it with ASP.Net MVC5.
  • Filtering In ASP.NET Core 2.0 Web APIDec 10, 2017. Filtering information is usually received via query parameters. The POCO FilteringParamssimply hold this information and passes to service (or repository).
  • Partial View In ASP.NET MVC Using Entity FrameworkDec 10, 2017. A partial view is same as user control in ASP.NET MVC that is used for code re-usability. Partial views help us to reduce code duplication. Hence partial views can be used for views like as Header and Footer views.
  • Creating Angular Project Using MVCDec 08, 2017. Let's learn how to create an Angular project using MVC.
  • DropDownList In ASP.NET MVCDec 06, 2017. In this article you will come know how to bind data and get dropdownlist selected value in Asp.Net MVC in Client Side and Server Side.
  • Charts In ASP.NET MVC Using Chart.jsDec 01, 2017. This article demonstrates how to create charts in ASP.NET MVC using Chart.js and C#. This article starts with how to use Chart.js in your MVC project. After that, it demonstrates how to add charts in a view.
  • Building Entity Framework Disconnected Generic RepositoryNov 29, 2017. The repository pattern separates and retrieves data model mapping logic from the business logic. We will create a repository class for each entity class in our application. All these classes usually have a main group of equals methods.
  • Client Side Routing Using Angular In MVCNov 29, 2017. AngularJS supports a Single page application routing module called ngRoute. When a user requests a specific url, the routing engine fetches that url and renders the view based on the defined routing rules. AngularJS appends '/#/' to the url to redirect to a particular url using $location service. For example, to redirect to '/Article', the url would be http://localhost/#/Article.
  • Creating Custom Tag Helpers With ASP.NET Core MVCNov 29, 2017. The tag helper enables us to run server-side code to generate HTML, CSS, Javascript code in Razor view.
  • Saving Your Ruby On Rails Application Code To Github.comNov 28, 2017. In this article you will learn git configuration in git bash and git hub repository creation, add new ssh key in git hub and finally add all application files into git hub repository via remotely using with git bash for Ruby on Rails application version controlling.
  • Filtering jQuery Data Table Server Side Using MVC And Entity FrameworkNov 27, 2017. This article explains how to work with jquery Datatable on the server side and how to use Search Textbox to do serverside filtering using MVC and Entity Framework
  • Play Videos Using Kendo Media Player And ListView In ASP.NET MVC5Nov 27, 2017. In this Article, I will demonstrate how to the play video(s) in Media Player Using Kendo UI Media Player and Listview in ASP.NET MVC5
  • Comments System With ASP.NET MVC 5 And jQueryNov 25, 2017. In this article, we will implement comments system by using ASP.NET MVC 5 and jQuery, Bootstrap
  • Anchor Tag Helper In ASP.NET MVCNov 23, 2017. The Anchor Tag Helper generates HTML anchor (<a> </a>) element by adding a new attribute. The "href" attribute of the anchor tag is created by using new attributes.
  • CRUD Operation With ASP.NET Core MVC Using Visual Studio Code And ADO.NETNov 23, 2017. In this article we are going to create a web application using ASP Core MVC with the help of Visual Studio Code and ADO.NET.
  • MVC 5 Demo Project With Entity Framework (DB First)Nov 23, 2017. MVC project has been set up. Now, make a new C# class library project which will act as a DAL layer and Entity Framework will be handled through this project.
  • Validation Tag Helpers In ASP.NET Core MVCNov 22, 2017. This article explains about the validation tag helpers found in ASP.NET Core MVC.
  • Your Singleton Might Not Be "Single"Nov 21, 2017. Singleton has been a very popular design pattern as it is proven to have some advantages compared to the global variables
  • QUIZ Application With ASP.NET MVC 5Nov 21, 2017. So many people asked in forums how we can build a quiz application using Asp.Net MVC. I would like to share with them a simple solution to achieve this application. In this post we will build our quiz application with an easy and simple approach. But you should have some basic skills in Asp.Net MVC 5 and JQuery, Bootstrap. I hope it will be helpful for you.
  • Form Tag Helper And Other Common Tag Helpers In ASP.NET Core MVCNov 20, 2017. Form tag helper and other common tag helpers in ASP.net core MVC
  • Deploy ASP.NET MVC Web Application In Cloud Service Using Azure PortalNov 20, 2017. From this article, you will learn how to deploy ASP.NET MVC web application in cloud service using the Azure portal.
  • Dynamic Filter By Using Intercepting Filter PatternNov 19, 2017. This article explains Dynamic Filter using Intercepting Filter Pattern
  • Set Paging Size In ASP.NET MVCNov 19, 2017. This article is an answer to common ASP.NET MVC searches
  • Dynamic Checkbox Functionality Using Angular In ASP.NET MVCNov 17, 2017. Checkboxes in AngularJS and asp.net MVC (server-side) application.
  • Creating CRUD API In ASP.NET Core 2.0Nov 17, 2017. ASP.NET Core gives a unified mechanism for creating MVC and Web API application. The key difference is that Web API will return JSON (or XML) and HTTP status codes instead of views, in order to communicate with the client.
  • Deploy ASP.NET MVC Web Application Using Azure Cloud ServiceNov 16, 2017. Cloud service comes under the PaaS service model, as with a web app service we can deploy our web application in this service and moreover it provides more control on the VMs for the users and we can install our own software by remoting it.
  • Two Way Data Binding In Angular Without $scope Object Using MVCNov 16, 2017. Data binding is the most useful and powerful feature among any of the existing or upcoming software development technologies. It is actually a process that bridges a connection between the view and business logic of the application.Basically we will see one-way and two-way data binding with respect to AngularJS applications. But before we jump to that section we will try to learn something about the scopes in AngularJS.
  • Passing Parameters To Middleware In ASP.NET Core 2.0Nov 15, 2017. I discussed in an earlier post that it is good practice to define middleware in a separate class and add to the pipeline using extension methods. We may also need to pass information to our middleware classes though and I’ve come across two patterns for this when digging into ASP.NET Core source code and other samples online.
  • MVC : Display Image From Byte ArrayNov 14, 2017. In this tutorial, I am going to explain how to display image from a byte array in ASP.NET MVC using C# .NET and VB.NET.
  • ASP.NET Core 2.0 MVC FiltersNov 13, 2017. Filter runs after an action method has been selected to execute. MVC provides built-in filters for things like authorization and caching. Custom filters are very useful to encapsulate reusable code that you want to run before or after action methods.
  • Different Ways Of Binding Razor DropdownList In ASP.NET MVC 5Nov 13, 2017. This article will demonstrate how to bind the values to Razor DropDownList in various ways using ASP.NET MVC5
  • Introduction To Bot Service In AzureNov 10, 2017. Bot used as an app that helps users interact in a conventional way. It may be as simple as basic pattern matching with a response or it may be sophisticated handling the artificial techniques with complex conversational state and integration to existing business services.
  • Upload/ Download Files In ASP.NET Core 2.0Nov 10, 2017. ASP.NET Core MVC model binding provides IFormFile interface to upload one or more files. The HTML form must have encoding type set to multipart/form-data and an input element with type attribute set to file.
  • JavaScript Flow Chart And Workflow With C# ASP.NET MVCNov 09, 2017. As soon as we wake up in the morning, we start to make decisions - do we stay in bed? (weekend, yea!), or get out of the bed? (get to work, must catch the train...). Once we make that first decision, we might take an action (grab a coffee!), or ponder another decision (do I need to visit the bathroom first?). As the day progresses, our life is one decision after another. Its the same in every organization. In one way, we can say that life, and how it goes, is based on infinite possibilities of flow-states :)
  • ASP.NET Core 2.0 MVC Distributed Cache Tag HelperNov 09, 2017. Cache and Distributed Cache Tag Helper help improve performance of your application by caching view’s content, either in-memory or in a distributed cache (e.g. Redis). Distributed Cache Tag Helper uses IDistributedCache to store contents in a distributed cache. To learn more about distributed caching, please refer to an earlier post here.
  • Working With View Components In ASP.NET Core MVCNov 09, 2017. View component is newly introduced feature in asp.net core MVC. It is very similar to partial view but it very powerful compared to partial view. It does not use model binding but works only with the data we provide when calling into it.
  • ASP.NET Core 2.0 MVC Custom Tag HelpersNov 08, 2017. As discussed in the previous post, Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. In this post we’ve created a new tag to display employee information.

About repository-pattern-in-MVC

NA
Web Development Outsourcing
Looking to add more bandwidth to your software team? Web Developers, designers, testers are now available on demand. Flexible hours, very competitive rates, expert team and High Quality work.