static void Main() { ILl = new EfLoadL(); DataTable dt = DataTableHelper.QueryableToTable(ILl.LoadLevellingTable); dt.TableName = "LoadLevelling"; // il nome della tabella nel db DataTable schema = DataTableHelper.QueryableToTable(ILl.SchemaTable); schema.TableName = "Schema"; DataSet ds = new DataSet(); ds.Tables.Add(dt); ds.Tables.Add(schema); CalcEXlogicClass.Execute(ds, "loadl", "LoadLevelling"); DataTable returndt = ds.Tables[0]; // converte il datatable var retlist = DataTableHelper.TableToList <LoadLevelling>(returndt).ToList(); ILl.MassiveAddData(retlist); ILl.MassiveSaveData(); }