文件名称:C# Access连接数据库和操作 配置app.config 可以直接调用函数
文件大小:1KB
文件格式:RAR
更新时间:2012-11-11 03:28:16
C# Access 查询 配置app.config
把对Accessl 数据操作写成了类 可以直接添加到项目中引用,快速建立或者小项目而言比较方便 举例(非查询语句): 添加货物 public int IntoDGoods(Entity.EGoods model) { SqlParameter[] para = new SqlParameter[]{ new SqlParameter("@GoodsID",model.GoodsID), new SqlParameter("@GoodsName",model.GoodsName), }; int result = 0; try { result = DataSql.ExecuteNon(IntoStr, para, CommandType.Text); } catch { result = -1; } return result; }
【文件预览】:
Access
----access.cs(5KB)
----App.config(280B)