我有一个应该从 sqlserver 表中填充的 datagridview。
SqlConnection SqlConnectionInstance = new SqlConnection(WinLogin.connectinStringSecure);
SqlConnectionInstance.Open();
SqlCommand sqlCommandInstance = new SqlCommand("Select * From T_Kala", SqlConnectionInstance);
SqlDataAdapter SqlDataAdapterInstance = new SqlDataAdapter("Select * From T_Kala", SqlConnectionInstance);
DataTable dt = new DataTable("Employee");
但visual studio无法识别DataTable!
错误 :
找不到类型或命名空间名称“DataTable”(您是否缺少 using 指令或程序集引用?)