- Home /
c# unable to create datatable, using System.Data not an accepted assembly reference
First of all, context; I'm trying to create a 2d top down roguelike made up of square rooms that are stored in a datatable. This is my first time using datatables in Unity, & this code
DataTable table = new DataTable("table");
tells me I'm missing an assembly reference to use "DataTable" at all. I thought I was supposed to use
using System.Data;
But that also gives me an error saying "data" doesn't exist in that namespace. I've also tried using System.Drawing, Linq, Text, Threading.Tasks, & Windows.Forms {from watching tutorials & looking up answers on datatables, none do anything & most Unity doesn't even recognize} I've looked around Unity ask & no one seems to have a solution, nor does the Microsoft C# manual since it seems to be a Unity specific issue. Does anyone know what assembly reference I need to be able to use "DataTable", "DataColumn()", & "NewRow()" in Unity? As always, any help is appreciated ^-^
Answer by Cornelis-de-Jager · Apr 04, 2018 at 03:27 AM
This is a Duplicate Question of this : https://answers.unity.com/questions/965867/cant-find-systemdata.html
You will find the answer there.
Your answer
Follow this Question
Related Questions
Accessing local system ( File Browser ) 2 Answers
System.Data.dll Assembly reference problem when built as webplayer 2 Answers
trying to insert data to Excel file using OLEDB 1 Answer
System.Linq.Dynamic not found 1 Answer
Is it possible to use a custom object in java (my WeaponObject) as a data type (like Vector3) 1 Answer