This site uses cookies to deliver our services. By using this site, you acknowledge that you have read and understand our Cookie and Privacy policy. Your use of Kontext website is subject to this policy. Allow Cookies and Dismiss

C# Programming

About C# Programming Language: features, and syntax and so on.

dotnet core lite-log

Set AttachDbFilename as Relative Path in .NET Core

200 views   0 comments last modified about 4 months ago

.NET Framework, you can use |DataDirectory| to configure connection string when connecting to SQL Server database file via attach mode: AttachDbFilename=|DataDirectory|\dbname.mdf In .NET Core, you cannot directly set SQL Server Express connec...

View detail
dotnet core lite-log

Instantiate a Service in ConfigureServices Method in .NET Core

36 views   0 comments last modified about 4 months ago

.NET Core is built in with dependency injection. Usually method ConfigureServices in Startup class is used to register services in the container. The signature of the method looks like the following: public void ConfigureServices(IServiceC...

View detail
.net core lite-log

ASP.NET Core 2.1 Error - 'Cyrillic' is not a supported encoding name

196 views   0 comments last modified about 4 months ago

After upgrading to ASP.NET Core 2.1 (.NET Core SDK 2.1.301), you may encounter the following error about encoding: System.ArgumentException    HResult=0x80070057    Message='Cyrillic' is not a supported encoding name. For information on defining a custo...

View detail
.net core entity-framework

SQLite in .NET Core with Entity Framework Core

117 views   0 comments last modified about 4 months ago

SQLite is a self-contained and embedded SQL database engine. In .NET Core, Entity Framework Core provides APIs to work with SQLite. This page provides sample code to create a SQLite database using package Microsoft.EntityFrameworkCore.Sqlite . Create sample project ...

View detail
c#

Tuples in C# (4.x, 7.0, 7.1)

175 views   0 comments last modified about 8 months ago

What is a tuple? Tuple is an ordered sequence, fixed-size, immutable and of heterogeneous objects. Tuple has been existing in other languages such as F#, Python, Perl and etc. for a long time. It was first introduced into C# from C# 4.0 and has been evolving over time. Since C# 7.1, tuple...

View detail
c# lite-log

C# version history and core features

139 views   0 comments last modified about 8 months ago

C# is my favourite programming language and has been evolving overtime. I have been programming with many other languages but C# is always my favourite because it is simple and easy to use. Visual Studio is the most powerful tool I’ve ever used. To me, programming efficiency and peformance are th...

View detail
lite-log hadoop hdfs

Invoke Hadoop WebHDFS APIs in .NET Core

367 views   0 comments last modified about 8 months ago

Background Apache doesn't provide native official .NET APIs for Hadoop HDFS. The HTTP REST API supports the complete FileSystem / ...

View detail

Migrating from ASP.NET Core 1.x to ASP.NET Core 2.0 – Issues Continued

790 views   0 comments last modified about 2 years ago

Other related issues are found during my migration. Unable to Change Identity Table Names ...

View detail

LINQ to Teradata

918 views   0 comments last modified about 4 years ago

In my previous post, I demonstrated how to use ADO.NET to connect to Teradata in your OLTP projects.  In this sample, I am going to implement the same sample using ADO.NET Entity Model, Entity Framework and LINQ. ...

View detail
.net

.NET中的安全性之数字签名、数字证书、强签名程序集、反编译

1135 views   0 comments last modified about 8 years ago


本文将探讨数字签名、数字证书、强签名程序集、反编译等以及它们在.NET中的运用(一些概念并不局限于.NET在其它技术、平台中也存在)。1.数字签名

View detail