Programming Blog
(Move to ...)
Programming Blogs
Health Blogs
▼
(Move to ...)
Home
▼
Showing posts with label
c sharp
.
Show all posts
Showing posts with label
c sharp
.
Show all posts
Saturday, 11 September 2021
simple use of Record in c#9 and newer versions
›
c# 9 introduces a new keyword Record which makes an object immutable. Properties in the record can be initialised at the time of creation o...
Monday, 7 September 2020
Unit test c#: Create Fake Httpcontext to bypass Null exception for User object
›
Microsoft Visual studio Test Framework Requirement: Nuget package Moq 4.13.0.0 (or later) Settings in visual studio: Menu->Tools->Op...
Wednesday, 5 August 2020
Read TFS Project name from TFS Project collection using c#
›
Using Team foundation api. References: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.T...
Entity Framework Core with Existing Database
›
Entity Framework Core only supports code first database aproach. To use existing database, we'll need to reverse Engineer Model from ex...
Thursday, 2 July 2020
EntityFramework Insert error due to PrimaryKey
›
MyProject.Controllers.CurrencyCodesController Unable to update the EntitySet 'CurrencyCodes' because it has a DefiningQuery and no ...
Friday, 26 June 2020
Use log4net for all logging in c# application
›
Exception logging is hugely important within an application, not just to ensure we know when an error has occured but also to help use trace...
Create XML from class or Object in C-Sharp
›
function to serialize object to xml in c# public static string SerializeObjectToXML(object item) { try { ...
›
Home
View web version