Table tbl = new Table("Employees");NumberField field = new NumberField("EmployeeID");
数据新增:
Employees.TBL.Insert( Employees._FirstName.Set("Fan"), Employees._LastName.Set("Henry"), Employees._BirthDate.Set(DateTime.Parse("1979-1-1")) );
数据修改:
Employees.TBL.Update(Employees._FirstName =="Fan", Employees._City.Set("GuangZhou"), Employees._Address.Set("TianHe"), Employees._Region.SetNull());
数据删除:
Employees.TBL.Delete(Employees._FirstName =="Fan");
数据查询:
System.Collections.IList lst = Orders.TBL.Where( Orders._OrderDate = DateTime.Parse("1997-1-1")& Orders._OrderDate < DateTime.Parse("1997-8-1") ).SelectObject(); foreach(Orders item in lst) { Console.WriteLine(item.OrderID); }
统计查询:
System.Data.DataSet ds = Orders.TBL.INNER(OrderDetails.TBL,OrderDetails._OrderID) .Where(Orders._OrderDate = DateTime.Parse("1997-8-1")) 展开更多 (50%)分享猜你喜欢
下拉加载更多内容 ↓