Hello,
Is there an option to copy all the Items from C# Dataset to Smile Dataset ?
Another question if i can read specific table from access Db (Like GeNIe allows).
Thanks,
Boris
Using DataSet
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Using DataSet
No, there's no .Net-specific functionality in Smile.Learning.DataSet. You'll need to iterate over the contents of your ADO.NET (or whatever data access technology you're using) and add columns/records to your Smile.Learning.DataSet object.borisrabin wrote:Is there an option to copy all the Items from C# Dataset to Smile Dataset ?
Another question if i can read specific table from access Db (Like GeNIe allows).
-
- Posts: 24
- Joined: Thu Sep 30, 2010 7:48 pm
Re: Using DataSet
shooltz wrote:No, there's no .Net-specific functionality in Smile.Learning.DataSet. You'll need to iterate over the contents of your ADO.NET (or whatever data access technology you're using) and add columns/records to your Smile.Learning.DataSet object.borisrabin wrote:Is there an option to copy all the Items from C# Dataset to Smile Dataset ?
Another question if i can read specific table from access Db (Like GeNIe allows).
My only option is insert cell by cell or i can insert full row?
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Using DataSet
You'll need to use DataSet.AddEmptyRecord for each row, then fill it with DataSet.SetInt/SetFloat calls. Don't forget to set up the columns first with DataSet.AddIntVariable/AddFloatVariable.borisrabin wrote:My only option is insert cell by cell or i can insert full row?