连接access数据库其实也简单,只要按照mvc的模式来就可以,遵循c v约定就可以 既然渲染试图是强类型,那么取得的数据就转换成强类型,其他一切和asp.net操作一样 DB mydb = new DB(); public ActionResult Index() { List<users> dd = new List<users>(); OleDbDataReader dr = mydb.GetdataReader("select * from dsds order…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.OleDb; namespace DzPlatForm.DBUtility { public class AccessPage { private string _StringConnection…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.OleDb; namespace DzPlatForm.DBUtility { public class AccessPage { private string _StringConnection…