Abundant Code

  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • F#
  • JavaScript
  • ASP.NET
  • C
  • Java
  • SQL Server
  • Assembly Lang

How to Quickly Delete All Rows in a Table in Entity Framework?

December 1, 2020 by AbundantCode Leave a Comment

There are times when you would be required to delete all the records from the table using Entity Framework. One of the commonly used approach is to iterate each rows and use the DBSet.Table.Remove as shown below. How to Quickly Delete All Rows … [Continue reading]

Filed Under: Entity Framework Tagged With: EF Core, Entity Framework

How to Ignore a Class Property in Entity Framework ?

December 1, 2020 by AbundantCode Leave a Comment

If you want to ignore a class property in Entity Framework , you can mark the property with the NotMapped data annotations. How to Ignore a Class Property in Entity Framework ? Below is a sample code snippet show how you can apply the NotMapped … [Continue reading]

Filed Under: Entity Framework Tagged With: EF Core, Entity Framework

How to Remove Duplicates in List using LINQ?

November 28, 2020 by AbundantCode Leave a Comment

There are times when you have to remove duplicate entried from a List from Your C# program and one of the easiest way to do that is using the combination of the LINQ and IEqualityComparer interface. Assume that you have a list of Actors as shown … [Continue reading]

Filed Under: C# Tagged With: duplicate, Duplicates, LINQ

How to Get the File Size in C# ?

November 28, 2020 by AbundantCode Leave a Comment

If you need a way to get the size of a file in your C# program , you can use the Length property of the FileInfo class. How to Get the File Size in C# ? FileInfo.Length returns the length of the file in bytes. … [Continue reading]

Filed Under: C# Tagged With: File Size

How to get last four characters from a string in C#?

November 27, 2020 by AbundantCode Leave a Comment

This post will provide a simple tip showing how you can get the last 4 characters from a string in C#. How to get last four characters from a string in C#? Assume that you have a string that contains the value "CodersEditor.com" and you wish to … [Continue reading]

Filed Under: C# Tagged With: C#, string

How to install Windows Service via Command Prompt in .NET ?

November 27, 2020 by AbundantCode Leave a Comment

Assume that you have the .NET Framework installed on your machine and you wish to install Windows Service via command prompt in Windows. In this case , you can use install the service using installutil.exe as shown … [Continue reading]

Filed Under: Windows Tagged With: command prompt

How to Skip Iteration of a foreach loop in C# ?

November 26, 2020 by AbundantCode Leave a Comment

When using C# programming language , there are times when you might want to skip over the iteration based on some condition and jump over to the next iteration. How to Skip Iteration of a foreach loop in C# ? continue keyword comes to your … [Continue reading]

Filed Under: C# Tagged With: C#, loop

How to Allow only numeric input in a Textbox in WPF ?

November 21, 2020 by AbundantCode Leave a Comment

If you are looking at ways to accept only digits and decimal points (numeric input) for a textbox in WPF , you could do it by following the below steps. How to Allow only numeric input in a Textbox in WPF ? Add the Event PreviewTextInput for … [Continue reading]

Filed Under: XAML Tagged With: C#, WPF, XAML

How to Calculate MD5 checksum for a file in C# ?

November 21, 2020 by AbundantCode Leave a Comment

There are times when you want to calculate MD5 checksum for a file in C# and you can easily do that using System.Security.Cryptography.MD5 You can use the ComputeHash method of the MD5 instance by passing the stream. You can later it to Hex using … [Continue reading]

Filed Under: C# Tagged With: C#, MD5

What is the best data type for Currency in C#?

November 9, 2020 by AbundantCode Leave a Comment

If you are looking at finding out what could be the best data type for currency in C# ?, this post will provide a quick tip or insights on the same. What is the best data type for Currency in C#? Use decimal for any currency or money … [Continue reading]

Filed Under: C# Tagged With: Currency datatype, Money datatype

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 108
  • Next Page »
RSS
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval

Categories

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML

Blog Stats

  • 8,730,872 hits

Archives

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • C Program to display half-pyramid using alphabets
  • How to Extract number from a string using C# ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • How to clean up unused PowerPoint master slides in PowerPoint?
  • How to retrieve the URL of the current Page in ASP.NET MVC 4 Controller ?
  • How to get the Relative Server Path in ASP.NET Web API ?
  • Json.NET & VB.NET - How to Serialize an Object ?
  • How to compare two Byte Arrays in C#?

Categories

  • Android
  • Angular 2
  • ASP.NET
  • Assembly Language
  • C
  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • Excel
  • F#
  • HTML
  • Interview Questions
  • Java
  • JavaScript
  • jQuery
  • Microsoft Office
  • MySQL
  • NETWORK
  • News
  • PHP
  • popular
  • PowerShell
  • Python
  • Ruby
  • SharePoint
  • SQL Server
  • SQL Server
  • Unix
  • VB.NET
  • Visual Studio
  • WebAPI
  • Windows
  • Windows Azure
  • Windows Forms
  • XAML

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • C Program to display half-pyramid using alphabets
  • How to Extract number from a string using C# ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • How to clean up unused PowerPoint master slides in PowerPoint?
  • How to retrieve the URL of the current Page in ASP.NET MVC 4 Controller ?
  • How to get the Relative Server Path in ASP.NET Web API ?
  • Json.NET & VB.NET - How to Serialize an Object ?
  • How to compare two Byte Arrays in C#?

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval
  • Python Program to Check Prime Number
  • Python Program to Find the Largest Value Among Three Numbers
  • Python Program to Check If a Given Year is Leap Year
  • Python Program to Check if a Number is Odd or Even
  • Python Program to Check if a Number is Positive, Negative or Zero

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML