How To

Primitive types in C#
11/10/2024 2:35:51 AM  56

In C#, primitive types are the basic types provided by the language, which represent simple values such as numbers, characters, and boolean values.

Multi-dimensional Array Size in C#
11/10/2024 2:26:30 AM  55

In C#, multi-dimensional arrays are arrays with more than one dimension. These arrays are declared using a comma-separated list of dimensions in square brackets.

How to empty Recycle Bin in C#
11/10/2024 2:16:07 AM  33

To empty the Recycle Bin in C#, you can use the SHEmptyRecycleBin function from the Windows Shell API.

DB NULL in C#
11/10/2024 2:12:02 AM  40

In C#, DBNull represents a database null value, which is different from null used for objects. DBNull is typically used to handle missing or undefined data in database-related operations.

How to use Identity column in EF7
11/10/2024 1:58:52 AM  33

In Entity Framework 7 (EF7), the concept of an "Identity" column is typically handled through migrations and the use of the ValueGeneratedOnAdd() method in the Fluent API or the Key attribute in your model class.

Turkish i in C#
11/10/2024 1:51:06 AM  48

In C#, when working with string comparisons that involve Turkish characters, such as the Turkish lowercase 'i' (ı) and uppercase 'I' (İ), special attention is needed because of the unique way these characters behave in Turkish language and culture.

How to allow HTML string in ASP.NET MVC
11/10/2024 1:40:45 AM  23

In ASP.NET MVC, HTML strings are considered dangerous because they can contain malicious code, such as JavaScript, that can lead to Cross-Site Scripting (XSS) attacks.

How to enable MultipleActiveResultSets
11/9/2024 2:40:53 PM  36

To enable Multiple Active Result Sets (MARS) in SQL Server, you need to modify the connection string of your application.

How to remove ASP.NET server headers
11/9/2024 2:40:11 PM  43

To remove or modify ASP.NET server headers (like X-AspNet-Version, X-Powered-By, etc.) in your application, you can take a few different approaches depending on your version of ASP.NET and the specific headers you want to remove.

How to insert master/details data in EF Code First
11/9/2024 2:28:14 PM  45

In Entity Framework (EF) Code First, inserting master-detail data involves inserting records into both the "master" and "detail" tables while respecting the relationships between them (such as one-to-many, many-to-one, etc.).

Connection String in Entity Framework 6
11/9/2024 2:20:59 PM  30

In Entity Framework 6 (EF6), the connection string is typically specified in the App.config or Web.config file of your project.

How to get current date and time from internet in C#
11/9/2024 1:57:14 PM  60

In C#, you can retrieve the current date and time from the internet by using a time server (also known as an NTP server) to sync with an accurate time source.