Converting List to DataTable in C#
public static DataTable ConvertToDataTable<T>(IList<T> data) { PropertyDescriptorCollection properties =
Read morepublic static DataTable ConvertToDataTable<T>(IList<T> data) { PropertyDescriptorCollection properties =
Read moreEntity Framework is an object-relational mapper (O/RM) that enables .NET developers to work with a database using .NET objects. It
Read moreFirst Create a viewmodel public class ApplicationUserRoleViewModel { public string UserId { get; set;
Read moreCalling from Controller public ActionResult Index() { //join use
Read morepublic DataTable List(string sql) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings[“DefaultConnection”].ConnectionString);
Read moreConnection string can be placed in web.config file found in root directory of the application from .NET 3.5 onward.connection string
Read moreFor .NET Microsoft-supported mechanism for sharing code is NuGet, which defines how packages for .NET are created, hosted, and consumed, and
Read moreWhat is a Model?Model is a class that represents domain specific data and business logic in a dot net application.
Read moreRequirements: Visual Studio (i am using VS 2017 for demo) Open up the visual studio and Click File -> New
Read moreWhat Is Asp.Net MVC ? Asp.net MVC is a framework introduced by microsoft in 2008 for building web application.Asp.net MVC is
Read more