var connStr = ConfigurationManager.ConnectionStrings["dbconnstr"].ConnectionString;
SQLContext db = new SQLContext(connStr);
///list =
1 > ;(s => s.ID > 5);
var list2 = db.GetList
var list3 = db.Query
## # # var query = db.Query
query.Where(s => s.Name == "b");##
var result = query.ToList();
//分頁詢問
var pageResult2 = db.GetPageResult
var pageResult3 = db.Query
## //插入
int row1 = db.Insert
new Config { Name = "c" }# new Config { Name = "c" }# # //更新
int update1 = db.Update
//刪除
//刪除
Config>(s => s.ID == 10033);
#int delete3 = db.Delete
以上是szq.orm.sql詳細使用實例程式碼的詳細內容。更多資訊請關注PHP中文網其他相關文章!