AliAli47 قام بنشر يونيو 8, 2021 مشاركة قام بنشر يونيو 8, 2021 السلام عليكم اريد انشاء برنامج بلغة سي شارب واريد ربطه بقاعدة بيانات اكسس عن طريق تقنية entity framework فهل من طريقة لربطه بالاكسس لاني لم اجد غير السيكوال عند استعمال التقنية رابط هذا التعليق شارك More sharing options...
د.كاف يار قام بنشر يونيو 12, 2021 مشاركة قام بنشر يونيو 12, 2021 تفضل اخي الكريم using System.Windows.Forms; using (OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Data.mdb;")) { using (OleDbCommand cmd = new OleDbCommand("SELECT CustomerId, Name FROM Customers")) { cmd.CommandType = CommandType.Text; using (OleDbDataAdapter sda = new OleDbDataAdapter(cmd)) using (DataTable dt = new DataTable()) { sda.Fill(dt); dataGridView1.DataSource = dt; } } } 1 رابط هذا التعليق شارك More sharing options...
الردود الموصى بها
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.