The word table has 2 fields: WORDID and LEMMA. This code shows all records in the word table. But I want to show only certain records like SELECT * WORD WHERE WORDID=10. Can anyone suggest how I can achieve this?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
ConsoleApplication4.DataSet1TableAdapters.wordTableAdapter kata = new DataSet1TableAdapters.wordTableAdapter();
foreach (ConsoleApplication4.DataSet1.wordRow row in kata.GetData())
{
System.Console.WriteLine(row.lemma);
}
System.Console.ReadLine();
}
}
}
You may try this..