Hello got typed Dataset named DSMain.
Tables
User:
U_id int
U_fname string
U_lname string U_Case intCase:
C_id int C_date string C_status int
U_Case is in relation with C_Status,
I want to add data to this table.
public static void
AddNewDluznik(string fname, string
lname, int case)
{
MainData.User.AddUserRow(fname, lname,
case);
}
Without rel it works.
Argument ‘3’: cannot convert from ‘int’ to ‘Zefir.DSMain.CaseRow’.
The way you are doing it,
AddUserRowhas the following signature:You need to reference the
CaseRowin yourCasetable to which your user is referencing:Alternatively, if you are working with isolated tables, and not the whole DataSet you can: