I newly born in asp.net world! trying initial steps towards it's learning. I have developed small application in WPF that performs CRUD operations. I have used: ADO.Net Connectivity and code below to perform these CRUD(Create/Insert, Read/Load, Update/Edit and Delete/ Remove) rows from GridControl:
NorthwindEntities dbContext = new NorthwindEntities();
Category category = new Category();
category.CategoryName = "Test Category";
Product firstProduct = new Product();
firstProduct.ProductName = "Test Product 1";
Product secondProduct = new Product();
secondProduct.ProductName = "Test Product 2";
category.Products.Add( firstProduct );
category.Products.Add( secondProduct );
dbContext.AddToCategorySet( category );
dbContext.SaveChanges();
Questions:
1: I want to do exactly this same thing in Asp.net, using ADO.net Connectivity.
2: Can i use this similar code in my asp.net CRUD application?.