Using DataSet

The engine.
Post Reply
borisrabin
Posts: 24
Joined: Thu Sep 30, 2010 7:48 pm

Using DataSet

Post by borisrabin »

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
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: Using DataSet

Post by shooltz[BayesFusion] »

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).
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
Posts: 24
Joined: Thu Sep 30, 2010 7:48 pm

Re: Using DataSet

Post by borisrabin »

shooltz wrote:
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).
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.

My only option is insert cell by cell or i can insert full row?
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: Using DataSet

Post by shooltz[BayesFusion] »

borisrabin wrote:My only option is insert cell by cell or i can insert full row?
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.
Post Reply