Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static IQueryable<Kolon> kolonlistele()
- {
- using (Pehlivan.pehkEntities ctx = new Pehlivan.pehkEntities())
- {
- var result = from k in ctx.Kolons
- select k;
- return result;
- }
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- dataGridView1.DataSource = veritabani_islemleri.kolonlistele();
- }
- public static IQueryable<Kolon> kolonlistele()
- {
- using (Pehlivan.pehkEntities ctx = new Pehlivan.pehkEntities())
- {
- return ctx.Kolons.ToList();
- }
- }
Add Comment
Please, Sign In to add comment