SHARE
TWEET

Untitled

a guest Feb 11th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static IQueryable<Kolon> kolonlistele()
  2. {
  3.     using (Pehlivan.pehkEntities ctx = new Pehlivan.pehkEntities())
  4.     {
  5.         var result = from k in ctx.Kolons
  6.                      select k;
  7.  
  8.         return result;
  9.     }
  10. }
  11.  
  12. private void Form1_Load(object sender, EventArgs e)
  13. {
  14.     dataGridView1.DataSource = veritabani_islemleri.kolonlistele();
  15. }
  16.    
  17. public static IQueryable<Kolon> kolonlistele()
  18. {
  19.     using (Pehlivan.pehkEntities ctx = new Pehlivan.pehkEntities())
  20.     {
  21.         return ctx.Kolons.ToList();
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top