首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Simple Database

Simple Database

  • 资源大小:129.32 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

A Simple .Net Database Library based on IQToolkit. SimpleDatabase uses SimpleMapping, which extends BasicMapping of IQToolkit, and follows Convention over configuration concept. If your class name (entity name) and property/field name are matched with table name and column names, no mapping required. If they are not matched, you can use simple Attributes to make mapping. Samples: ``` //entity samples using (Db db = Northwind.GetDb()) { //insert using (DbTransactionInfo tr = db.BeginTransaction()) { TestEntity te = new TestEntity(); te.LoginName = "Admin"; db.Insert(te); tr.Commit(); } //update using (DbTransactionInfo tr = db.BeginTransaction()) { var q = from e in db.Query() where e.LoginName == "A

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP