public frmTarihliKar() { InitializeComponent(); lokKategori.Properties.DataSource = kategoriDal.GetAll(context); lookAnaGrup.Properties.DataSource = anagrupDal.GetAll(context); lookAltGrup.Properties.DataSource = altgrupDal.GetAll(context); lookMarka.Properties.DataSource = stokDal.StokListele(context); lookUretici.Properties.DataSource = stokDal.StokListele(context); dtpBaslangic.DateTime = new DateTime(DateTime.Now.Year, 1, 1); dtpBitis.DateTime = new DateTime(DateTime.Now.Year, 12, 31); }
public frmTarihliAlis() { InitializeComponent(); lokKategori.Properties.DataSource = kategoriDal.GetAll(context); lookAnaGrup.Properties.DataSource = anagrupDal.GetAll(context); lookAltGrup.Properties.DataSource = altgrupDal.GetAll(context); lookMarka.Properties.DataSource = stokDal.StokListele(context); lookUretici.Properties.DataSource = stokDal.StokListele(context); dtpBaslangic.DateTime = new DateTime(DateTime.Now.Year, 1, 1, 00, 00, 00); dtpBitis.DateTime = new DateTime(DateTime.Now.Year, 12, 31, 23, 59, 59); dtpBaslangic.Properties.Mask.MaskType = MaskType.DateTimeAdvancingCaret; dtpBitis.Properties.Mask.MaskType = MaskType.DateTimeAdvancingCaret; }
public async Task <IEnumerable <Kategori> > GetAll() { KategoriDAL kategoriDal = new KategoriDAL(); try { return(await kategoriDal.GetAll()); } catch (Exception ex) { throw new Exception(ex.Message); } }
protected void btnSubmit_Click(object sender, EventArgs e) { gvKategori.DataSource = kategoriDAL.GetAll(); gvKategori.DataBind(); }
// The return type can be changed to IEnumerable, however to support // paging and sorting, the following parameters must be added: // int maximumRows // int startRowIndex // out int totalRowCount // string sortByExpression public IQueryable <SampleEF.Data.Kategori> gvKategori_GetData() { kategoriDal = new KategoriDAL(); return(kategoriDal.GetAll()); }
// GET: api/Kategori public IEnumerable <Kategori> Get() { KategoriDAL kategoriDAL = new KategoriDAL(); return(kategoriDAL.GetAll()); }
public List <Kategori> GetAll() { kategoriDAL = new KategoriDAL(); return(kategoriDAL.GetAll().ToList()); }
public void Listele() { gridContKategoriler.DataSource = kategoriDal.GetAll(context); }