C# MS-SQL

How to Convert a Table Column Into a C# Model Class

In this blog, I will demonstrate how to convert a table column into a C# model class using stored procedures. This is a very useful tip for any C# programmer. SQL Code Create tables and columns as you need, like given below: CREATE TABLE [dbo].[EmployeeMaster]( [RowId] [bigint] NULL, [EmpFirstName] [varchar](50) NULL, [EmpLastName] [varchar](50) NULL, [PhoneNo] […]

C#

Convert Table Data To List Using Reflection

In this blog, learn how to convert table data into list data using Reflection and LINQ. You can use the data passing from the server side to the client side. Reflection You can use Reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from […]

C#

Types of Namespace in C#

CThe namespaces are used in C# that contains collection of classes. There four types of namespaces in C#. Directive Station Alias Nested Directive Namespace: The directive namespace that is from link library and direct as link. Eg: using system.IO using System; Console.WriteLine(“Hai”); Console.WriteLine(“Hello C# Corner!”); Station Namespace: The namespace that created automatically for project. Eg: Console app create.  using System.Xml; […]