C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,962 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello everyone
I am migrating from Vb.net to C Sharp
I have this function in Vb.net called TraeDataset.
I try to migrate this function to C Sharp, but it gives me an error.
I get the error in the DataSet.
I count on your help.
System.Data must be added to the using directive.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data; // <<--
or use DataSet with Full namespace
public System.Data.DataSet TraeDataset(string sql)
{
var ds = new System.Data.DataSet();
Solved 100x%
Thank you....
Solved 100x%
Thank you....