https://www.jianshu.com/p/ce8026992275 https://www.cnblogs.com/bomo/p/3331602.html https://blog.csdn.net/liyazhen2011/article/details/80541546(这个比较好) 这条路走得太远,暂停走。还是用传统的ADO.DB来实现
//这里介绍LINQ DataContext类,DataContext 是用来连接到数据库、从中检索对象以及将更改提交回数据库的主要渠道。使用 DataContext 时就像使用 ADO.NET SqlConnection 一样。 DataContext db = new DataContext(SqlEasy.connString); Table<FlowInstanceModel> Customers = db.GetTable<FlowInstanceModel>(); var cs = from c in Customers where c.KeyId<999 select c; Response.Write(NetWing.Common.JSONhelper.ToJson(cs));
Copyright © 2004-2024 Ynicp.com 版权所有 法律顾问:建纬(昆明)律师事务所 昆明市网翼通科技有限公司 滇ICP备08002592号-4