C# Corner

Resources  
  • Getting Started With Entity Framework Core - Database-First DevelopmentOct 12, 2017. This article is the first part of the series on Getting Started with Entity Framework Core. In this post, we will build an ASP.NET Core MVC application that performs basic data access using Entity Framework Core. We will explore the database-first approach and see how models are created from an existing database. We will also take a look at how classes become the link between the database and ASP.NET Core MVC Controller.
  • Angular Components (With Examples)Oct 12, 2017. A Component is nothing but a simple typescript class, where you can create your own methods and properties as per your requirement which is used to bind with an UI (html or cshtml page) of our application.
  • How To Create Windows Local User Account Using C#Oct 11, 2017. Here, we are going to learn to make a Windows local user account using C#. Here we are going to make a c-sharp console application and write code in it to make user accounts via C#.
  • Logging Exception in Database Using CustomFilter ExceptionOct 11, 2017. As per request from one of my followers I am writing this article, which will explain how we can handle Errors in an MVC application. In this article I am also going to explain how we can log our exception message in our Data Base.
  • Dependency Injection In ASP.NET MVC 5Oct 10, 2017. I have seen many articles about Dependency Injection and thought to write an article about using it in Asp.Net MVC5.
  • ASP.NET Core 2.0 Session StateOct 09, 2017. Using an empty project from a previous post, amend Startup class ConfigureServicee() method, and add services for session and its backing store.
  • Office 365 Development With Visual Studio 2017 - Part TwoOct 03, 2017. When Visual Studio 2017 was launched earlier this year, I wrote an article to provide glimpses on how to get started with Office 365 development with VS 2017 and different project templates available in VS 2017. You can read it here.
  • ASP.NET Core 2.0 Error PagesSep 29, 2017. Starting from an empty project, created in a previous post, amend the Configure() method of Startup class to use middleware needed for error handling. Below I’ve used a custom middleware (defined as lambda) to handle production exceptions.
  • Why "Service Locator" is an "Anti-Pattern" for Dependency InjectionSep 29, 2017. The Service Locator is used as a replacement for the new operator. The problem with service pattern is that it hides a class's dependencies and is a bonafide anti-pattern. In fact, it takes away a developer's clarity about the class he/she is using.
  • Create Value Object In C#Sep 28, 2017. Create a class that abstracts away (encapsulate) ‘data’ in your domain and provide methods to work on it. Below is a class I don’t consider a good Value Object.
  • Default(T) In GenericsSep 27, 2017. Default represents default value of T parameter in generics intructions. In several cases, the default keyword is an absolute unknown and we think it’s unnecessary or its functionality is null. There are many development moments with the generics classes where the default keyword can be useful.
  • WebGrid Custom Paging Links To Avoid Load On Server Using Stored Procedure And ASP.NET MVCSep 27, 2017. I will show you how to fetch the data dynamically from the database and bind to the WebGrid control, using the stored procedure in MVC 4.0. In this blog, today, I will show you how to write code in ASP.NET MVC for implementation of WebGrid Control using Static Data. In later sessions, I will show you the process of using GridView Dynamically, that means using SQL Server data source.
  • How To Write Simple Todo CRUD ASP.NET MVC ApplicationSep 22, 2017. This article includes a lab exercise for you to demonstrate what have you learned from this training material to create your own Employee CRUD operation using EmployeeRepository
  • Xamarin.Forms Tip - Implement Show/Hide Password Using EffectsSep 19, 2017. While developing login pages, we usually get a requirement that there should be an icon in password entry to show/hide password while entering the password. While looking for a solution to this requirement, I found that most of the implementation is done using custom controls whereas we can do this kind of small platform-specific customization using effects. Last year, I wrote this article about implementing custom fonts using effects so I thought let's try this also using the same tecnique.
  • Introduction To Tag Helpers In ASP.NET CoreSep 18, 2017. Tag helper is a new feature in ASP.net MVC. It enables server-side code to create and render HTML elements in Razor View. It is feature of Razor View engine. They are the C# classes which participate in view generation by creating the HTML elements. Using the tag helper, we can change the content of HTML element and add additional attributes to the HTML element. It is very similar to HTML helper in ASP.net MVC.
  • Selection Manager For WPF/MVVMSep 17, 2017. This article presents the idea and implementation of a class to manage the selection of only one element in different linear and hierarchical structures.
  • ASP.NET MVC CRUD Operation Using Entity Framework Without Writing Single CodeSep 11, 2017. Here, you will learn to do CRUD (Create,Read,Update and Delete) operations in MVC using Entity Framework without writing a single line of code.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • Create Timer Task Application In Xamarin.Forms Using Visual StudioSep 04, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing the designers with the different platforms like Android,IOS,etc.
  • Create StopWatch Application In Xamarin.Forms Using Visual StudioSep 04, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing the designers with the different platforms like Android,IOS,etc.
  • Create Local Notification In Xamarin.Forms Using Visual StudioSep 04, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing the designers with the different platforms like Android,IOS,etc.
  • Learn About Azure Cognitive ServicesSep 01, 2017. Microsoft Cognitive Services (earlier known as Project Oxford) provides us the ability to build intelligent applications, just by writing a few lines of code. These applications or services are deployed on major platforms like Windows, iOS, and Android. All the APIs are based on machine learning APIs and enable developers to easily add intelligent features – such as emotion and video detection; facial, speech and vision recognition; and speech and language understanding – into their applications.
  • Building A .NET Core 2.0 Class LibraryAug 31, 2017. In my previous tutorial, Getting Started with .NET Core 2.0, we learned how to build our first console app using .NET Core 2.0. We also learned how to package and deploy the application so it can be used by other users.
  • More Details About Razor Pages In ASP.NET Core 2.0Aug 27, 2017. I built a simple web app to show you the new feature named Razor Pages in ASP.NET Core 2.0 . However it doesn't contain some useful and basic functions. So I decided to write one more article to show more details of Razor Pages.
  • Create ToolBar Menu Items In Xamarin.Forms Using Visual StudioAug 24, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing designers with different platforms like Android, IOS, etc.
  • Universal SMTP Code To Send Emails In .NET AppsAug 13, 2017. As already mentioned quite clearly in the tagline, the only reason to write this article is to cover the basic requirements of every SMTP vendor's code in .NET applications, If your vendor is Google's mail service, — Gmail — then you can most likely leave this article and go back to the article, which I wrote quite a lot of time ago to share how to send emails through a C# programs, sending emails over .NET framework, and general problems – using C# code.
  • Dependency Injection - Part 3 - Implicit Vs Explicit DependenciesAug 12, 2017. If a component or class depends upon other components to complete its operations, then these other components are dependencies for this class. Our class can have these dependencies as implicit or explicit dependencies.
  • Who Is An Enterprise ArchitectAug 10, 2017. Earlier, I wrote two posts on the basics of EA, but in this post, I am taking a step back and trying to explain the difference between an IT Architecture and an Enterprise Architecture and sequentially I will explain the difference between a Solution provider (often called as solutioner) and an Architect.
  • Dependency Injection - Part Two - Five Reasons To Write Loosely Coupled CodeAug 09, 2017. A loosely coupled application has good isolation among its classes, modules and assemblies. Therefore, if we make a change to one part of the application, we only need to update the relevant modules. We do not need to make changes throughout the application.
  • Dependency Injection - Part One -Tightly Coupled ApplicationAug 07, 2017. It is a best practice to use interfaces instead of concrete classes. These interfaces can then be mocked at the time of unit testing, which will prevent any call to the actual database. Also, it is a good practice to stop "newing-up" objects in classes.
  • Understand About Cloud Before Stepping On To Any Cloud Service ProvidersAug 02, 2017. I will be writing a series of articles on Amazon Web Service and on Azure Cloud. But, before that let's learn with the help of this article why we should move towards the Cloud.
  • Creating Bullet-Shooting Game Using Constructor 2Aug 02, 2017. Constructor is used for 2D game creation without writing a lot of code. Now in this article, I will explain how to design the game start page using Constructor. Constructor 2 is a powerful HTML 5 game creator designed especially for 2D Game Developer.
  • Writing Code With Programming Ligatures In Visual StudioAug 01, 2017. Almost all visual studio developers are already in love with Consolas font. Consolas is an awesome, top ranked font to write code. But sadly, Consolas doesn't has any ligature support for us. What is ligature in a language? Typographic ligature occurs when two or more letters are joined as a single letter. For example AE > Æ, OE > Œ etc. So how can we carry ligature in our code in visual studio? There are plenty of fonts to write code with ligature support, such like- Fira Code, HasKlig, Monoid and etc.
  • Entity Framework CRUD Operation Performed With SQL Stored Procedure Using ADO.NET Entity Data ModelJul 31, 2017. You can see my pervious article for Entity framework with Ado.Net data Model connection and how to create a new entity framework project and sql database connection maintained with created entity framework project. Also you can see how to create a class in entity framework based on data table.
  • SharePoint REST Calls With SPHttpClient Class In SPFx WebpartsJul 31, 2017. Let us look at the usage of sphttpclient in SPFx solutions for making REST calls.
  • Selecting An Enterprise Content Management System (CMS) - Part TwoJul 31, 2017. In continuation of my previous article on – “Selecting a Content Management System that supports Your Business”, I thought of writing this article on selecting an Enterprise CMS. Nowadays, Mobile, Big Data and E-Commerce are causing drastic changes in the business landscape and all those companies who ignored their online presence are at the risk of losing customers and revenue.
  • Built-In Filter Type In ASP.NET Core MVCJul 29, 2017. The ASP.net core framework includes five built-in filter types that we can sub-class and customize based on our requirement. The framework supports following built-in filters type.
  • Managing Your Traffic On Server Applications Using Geographic RoutingJul 28, 2017. Welcome to my first writing on Azure Traffic Manager using Geographic Routing.
  • Learn Web API : Using SQL Helper ClassJul 25, 2017. This article demonstrates how to use Web API Using SQL Helper Class with easy to use data base access in Visual Studio 2017.
  • Component In Angular 2 and How to Create Nested Component in Angular 2Jul 25, 2017. In this article, we will learn about Angular 2 components and we will also see how to create a nested component.
  • Code First Development Approach With Entity FrameworkJul 20, 2017. Which one to use in your project is completely your choice and also what you already have in place. Meaning are you designing/developing something from scratch or you already have got DB or domain classes, and also what are your preferences, meaning do you prefer to design classes first and then let your DB gets developed from those classes or you like to design visual class diagram first.
  • Execution Of Test Cases In Sequential And Parallel Using Selenium WebdriverJul 18, 2017. Selenium is an open source tool, which is used to execute the test scripts or the test cases on web applications. As we know Selenium is an open source tool, which supports various programming languages such as Java,C#, PHP,JavaScript, Ruby etc. Selenium supports various operating systems to execute the test scripts on web applications like Windows, Linux, MacOS etc. Selenium is written using one of the famous programming languages; i.e. Java, and its a cross-platform.
  • Selecting A Content Management System That Supports Your BusinessJul 17, 2017. Recently, a customer asked for a Content Management System (CMS), and being a SharePoint developer and consultant, I proposed SharePoint Server as CMS. Afterwards, by analyzing different CMS in the market, I thought of writing this article and will focus mainly on a CMS named – “Sitefinity” (http://www.sitefinity.com/).
  • Multithreading In C# .NetJul 16, 2017. If you have a program that execute from top to bottom, it will not be responsive and feasible to build complex applications. So .Net Framework offers some classes to create complex applications.
  • Python Program To Find All IPs Assigned In A NetworkJul 15, 2017. This is just a overview how you can create programs to find Network IP. You can do it in more interesting way by using raw_input to assign ip directly from user instead of writing it. Let me know if you need any help or if you are having problem in understanding.
  • Best Practices For MVCJul 14, 2017. Add a class library project to the solution, named Store.Model. This library is where we ‘ll keep all of our domain objects. Entity Framework will count on them in order to build the database but we are not going to configure Code First using DataAnnotations attributes on this project. Instead, we are going to put all the Code First configuration in specific Configuration classes using the Fluent API. Add a folder named Models.
  • How To Create A List/Library Programmatically In SharePoint 2013Jul 13, 2017. We need to install Visual Studio in our machine for creating a list using SharePoint Server Object Model. The Server Object Model will be executed in the server side & it provides a rich set of classes in representing & manipulating SharePoint objects. Server object model is like production server environment to access the data where Sharepoint is installed on the machine.
  • Machine Learning - Part One - Stick On With Terms For Azure Machine LearningJul 07, 2017. This article will help you to move with Azure Machine Learning as a basic start. I will be walking through the concepts of Azure Machine Learning terms throughout this writing.
  • Go Serverless C# With Azure Functions Because Cost MattersJul 05, 2017. This article demystifies Azure Functions with its serverless mechanism and it will also explain how you can write down your PaaS code in cost-effective way.
  • Simulate SharePoint Online Timer Jobs Using Azure FunctionsJul 05, 2017. SharePoint Server provides native Timer Jobs that inherit SPJobDefinition class to run at regular intervals defined in the SPSchedule object. This way we can create solutions that have to be iteratively run to process logic at regular intervals. However, in case of SharePoint Online Native Timer Jobs cannot be used.
  • Hello World Program Using Aurelia JavaScriptJul 04, 2017. JavaScript front-end framework is similar to frameworks like Angular, Ember and React. I've written about it in the past but it's been a while. Here is an updated guide on how to get started using it.
  • Two-Class Boosted Decision TreeJul 03, 2017. Two-Class Boosted Decision Tree module creates a machine learning model that is based on the boosted decision trees algorithm. A boosted decision tree is an ensemble learning method in which the second tree corrects for the errors of the first tree, the third tree corrects for the errors of the first and second trees, and so forth. Predictions are based on the entire ensemble of trees together that make the prediction.
  • Deploying A Simple LUIS Bot Using Microsoft Azure Bot ServicesJun 28, 2017. LUIS stands For Language Understanding Intelligent Service which offers a fast and effective way of adding language understanding to applications. With LUIS, you can use pre existing, world class, pre built models from Bing and Cortana whenever they suit your purposes and when you need specialized models, LUIS guides you through the process of quickly building them.It is also part of Microsoft Cognitive Service.
  • React Tutorials - Day Three - ComponentsJun 23, 2017. Today, we will learn about components. Component are the heart of React, components let you split the UI into independent and reusable sections. In React to create a component we need to extend the “React.Component” class.
  • How To Operate With Data Persistence In Xamarin.Forms - Part TwoJun 23, 2017. In this one, I’ll show you how to use the file system to save data using Xamarin with the .Forms UI Technology and the PCL (Portable Class Library) code sharing strategy.
  • Writing Complex Queries Using LINQ And LambdaJun 22, 2017. I am writing this article based on request by some developers regarding how to write some complex queries using LINQ & Lambda expression which consist of joins / groupby / aggregate functions
  • Marking Methods "Obsolete" In C# Class LibraryJun 14, 2017. In this article, I will explain how a method can be marked as obsolete in C# class library.
  • Understanding React Components On SPFxJun 13, 2017. In this article, let us see how React JS components work along with multiple class hierarchy using SharePoint Framework components.
  • How To Write Effective CodeJun 03, 2017. How To Write Effective Code.
  • Write HTML Code In Xamarin Cross Platform With Table ExampleMay 17, 2017. You build your mobile app entirely in HTML, however those apps can suffer from performance problems when trying to accomplish complex processing or UI effects and are also limited in the platform features which they can access.
  • Simplifying MVVM INotifyPropertyChanged On Xamarin.FormsMay 12, 2017. The goal is simplifying MVVM INotifyPropertyChanged in Xamarin Forms therefore making it unnecessary to keep inheriting base classes and handling the setter of each ViewModel Property.
  • JSON.NET With Xamarin iOSMay 11, 2017. In this article, you will learn how to write JSON in Xamarin iOS, using Xamarin Studio.
  • Class And Style Bindings In Angular 2 - Part EightMay 04, 2017. In this article, we are going to learn how to bind classes and styles to HTML elements.
  • Two Class Support Vector MachineMay 03, 2017. An overview of Two Class Support Vector Machine.
  • Eager Loading, Lazy Loading And Explicit Loading In Entity FrameworkMay 01, 2017. The readers will learn about Eager Loading, Lazy Loading and Explicit Loading in an Entity Framework.
  • Important Tips To Write Clean Code In C#Apr 30, 2017. In this article, we will see how to write clean code in C# .
  • Writing Our Own Memory Manager In C/C++Apr 21, 2017. In this article we will write our own memory manager by implementing our malloc function and memory management schemes such as FCFS, Paging, Segmentation etc., using C/C++.
  • Step By Step Angular 2 Implementation In Visual Studio Update 3Apr 20, 2017. This article will explain the details about how to configure your project for an Angular 2 and how to write your Angular 2 Application.
  • Software Testing - Best Practices And Principles To Write Unit TestingApr 14, 2017. In this article, you will learn best practices and principles to write Unit testing.
  • Create Runbooks To Automate Tasks In Azure AutomationApr 13, 2017. This article helps readers to create Runbooks to automate the tasks in an Azure Automation.
  • Custom Collection Classes In C#Apr 06, 2017. This article presents an overview of custom collection classes in C#.
  • All About Office 365 Administrator Roles And TypesApr 04, 2017. In this article, I am writing about Office 365 administrator roles and types of Office 365.
  • Mutable And Immutable Class In C#Mar 29, 2017. In this article, we are going to learn about mutable and immutable class in C#.
  • Overview Of List Collection Class In C#Mar 28, 2017. Overview Of List Collection Class In C#.
  • JavaScript Interview Day # 1 - How To Create A ClassMar 28, 2017. JavaScript interview tips - How to create a Class.
  • Write Serverless Functions Using AWS Lambda And C#Mar 22, 2017. Write Serverless Functions using AWS Lambda and C#.
  • How To Organize Classes Using NamespacesMar 19, 2017. How To Organize Classes Using Namespaces.
  • Read Posted Excel File Using NPOI Library In ASP MVC With AJAXMar 17, 2017. In this article, we will learn how to read posted Excel file from AJAX, using NPOI DLL in our ASP MVC Application.
  • Writing Effective C# CodeMar 16, 2017. This article explains how to write better C# code to make it effective and maintainable.
  • Test Driven Development (TDD) - Part TwoMar 14, 2017. This article explains the options available in Visual Studio to work with Test Driven Development and also present examples about writing unit test cases.
  • DocumentDB In The Microsoft AzureMar 07, 2017. This article will be about the creation of the Document DB and writing JSON code online as well as uploading JSON data directly as the files.
  • How To Use The Array List Class In C#Mar 07, 2017. In this article, let's see the uses of array list classes in C#.
  • How To Create Image Thumbnail In ASP.NET ApplicationsMar 05, 2017. In this article, we will learn how to upload multiple images and generate thumbnails of those images. We will also learn to write our own customized code for resizing and saving images.
  • Creating Google Maps AutoComplete DropDown With Multiple Map PointersMar 03, 2017. Using this method, you can implement complete Google Maps implementation.This code is written in AngularJS and MVC , but you can use in pure JavaScript also.
  • Behavior Driven Development Using Karma And Jasmine In Angular 2Feb 27, 2017. This article shows how can you write and test, using Jasmine in Angular 2.
  • Creating Your Own Operating SystemFeb 22, 2017. In this article, we will write our own bootloader using 16-bit assembly language to create our own operating system.
  • Create Custom ListView In Xamarin With Visual Studio 2015Feb 21, 2017. In this article, we will learn how to create, show custom ListView, and write Itemclick event of ListView in Xamarin with Visual Studio 2015.
  • Implement Swagger UI With Web APIFeb 21, 2017. In this article, we are going to see how to write a standard form of services in WebAPI and list all services in Swagger UI.
  • Model Class Validation Testing Using NunitFeb 15, 2017. In this article, we are going to learn about validating a Model class property that has data annotation, using Nunit.
  • Understanding Startup Class In ASP.NET CoreFeb 10, 2017. In this article you will learn about Startup Class in ASP.NET Core.
  • Send Mail Using SendGrid In .NET CoreFeb 01, 2017. Sending mail in .NET Core is not easy, as .NET Core does not support SMTPClient class. So, this article explains how we can send mail in .NET Core using SendGrid.
  • Class And Constructor In TypeScript Using Visual Studio CodeJan 23, 2017. In this article, you will learn about class and constructor in TypeScript, using Visual Studio Code.
  • Creating A Multilingual Application In Xamarin AndroidJan 19, 2017. In this article, you will learn how to write multilingual Android apps in Xamarin Android, using Visual Studio 2015 Community and C#.
  • Convert DateTime To String Format Using IQueryableJan 10, 2017. In this article, you will learn how to convert DateTime to string (yyyy/mm/dd) format in ViewModel/Whatever class with IQueryable.
  • Bootstrap Grid SystemDec 30, 2016. In this article, you will learn more about the Bootstrap grid system, grid class, and grid system rules.
  • C# Tutorial Part 2 - The First Error In Your ApplicationDec 28, 2016. This article gives an introduction to namespace, class, and methods used when an error occurs.
  • MVVM - The KnockoutJS RedemptionDec 26, 2016. In this article, I will show you how to use KnockoutJS in a simple way and write JavaScript in Revealing Module Pattern as an alternative to AngularJS.
  • What Is Cloud Computing?Dec 18, 2016. In this article, I'll be writing about the basics of the Cloud Infrastructure. This article is actually for beginners.
  • Schedule Background Jobs Using Hangfire In ASP.NET CoreDec 15, 2016. Hangfire is an open source library to schedule and execute background jobs in .NET applications. This article is intended to demonstrate how to set up Hangfire and write some code to schedule an initial job in the ASP.NET Core project.
  • Build The Ionic App With Radio Button Classes In Visual Studio 2015Nov 27, 2016. In this article, you will learn how to add Ionic Radio button in the Ionic app, using Visual Studio 2015.

About Reader-and-write-classes

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!