News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
01public void Fill(SqlConnection cnx, DataSet ds) {
03var cmd = cnx.CreateCommand();
04cmd.CommandText = "SELECT * FROM dbo.Products; " + "SELECT * FROM dbo.Categories";
05var adapter = new SqlDataAdapter(cmd);
06
07}

You need to ensure that App_Products and App_Categories are populated from the dbo.Products and dbo.
Categories database tables. Which code segment should you insert at line 06?

  1. adapter.Fill(ds, "Products"); adapter.Fill(ds, "Categories");
  2. adapter.Fill(ds.Tables["App_Products"]);
    adapter.Fill(ds.Tables["App_Categories"]);
  3. adapter.TableMappings.Add("Table", "App_Products");
    adapter.TableMappings.Add("Table1", "App_Categories");
    adapter.Fill(ds);
  4. adapter.TableMappings.Add("Products", "App_Products");
    adapter.TableMappings.Add("Categories", "App_Categories");
    adapter.Fill(ds);
Answer: Answer is c
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;