Quantcast
Channel: C#nedir?com Forum
Viewing all articles
Browse latest Browse all 613

C# : C# sql veri çekme ile ilgili

$
0
0
Author: martindix
Subject: C# sql veri çekme ile ilgili
Posted: 26 Temmuz 2016 at 00:04

List<Tablon> pList = new List<Tablon>();

foreach(var item in dizi)
{
       //linq

       if(string.isnullorwhitespace(item))
      {
       var query = db.tablo.singleordefault(s=>s.Id.equals(item)).tolist();
       plist.add(new tablon() { id = query.id, name= query.name });
       }
}

datagrid.datasource = plist.tolist();

web kodlaması olarak örnek verdim. winforma uyarlayabilirsin.



Viewing all articles
Browse latest Browse all 613

Trending Articles