Latest

.NET : How to save DataTable to Database Table using C#

Recently I wanted to save DataTable data into database. I assumed this would be easy using Entity Framework, but it turns out it is not, since DataTable consists of rows and columns while the Entity Framework deals with objects. Another way is to use ADO.NET by iterating through the rows in the DataTable and insert each row using SqlCommand and INSERT statement, but there is an easier way to accomplish this and that is by using SqlBulkCopy class, which is the focus of this article.

Read More

Winform : How to create a new popup window using C#

When I started to learn WinForm programming, one thing that I wondered was how to create additional window forms on already existing Winform Project. For example I wanted to create a popup window for editing purposes. I knew what code to write that would instantiate a new form but didn’t know how to edit that form in the designer.

Read More

Share this page

Back to Top