摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ctrlCloud { /// /// Authcode加密解密帮助类 郑辰龙 20160408 /// p... 阅读全文
posted @ 2016-11-01 14:05 天下滋味 阅读(571) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace ShangHaiBusWebServic... 阅读全文
posted @ 2016-11-01 14:04 天下滋味 阅读(627) 评论(0) 推荐(0) 编辑
摘要: //从老集合中查询每一个元素d存入新集合 var list = from d in list_dog select d; //编译后会生成对应的标准查询运算符 linq是一种类似于sql 标准的语法糖 list = from d in list_dog where d.Gender==false se... 阅读全文
posted @ 2016-07-23 16:26 天下滋味 阅读(215) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LibraryLearn1 { public class Class1 { static List list_... 阅读全文
posted @ 2016-07-23 11:25 天下滋味 阅读(256) 评论(0) 推荐(0) 编辑
摘要: /// /// 压缩文件帮助类 /// public class ZipHelper { /// /// 压缩文件 /// /// 源文件夹 /// 目标文件 public void ZipFiles(string strFile, string strZip)... 阅读全文
posted @ 2016-07-08 14:48 天下滋味 阅读(240) 评论(0) 推荐(0) 编辑
摘要: \Libraries\Nop.Core Nop.Core项目包含nopcommerce的一系列核心类如缓存,事件,辅助类和业务对象(如订单和客户实体类) \Libraries\Nop.Data Nop.Data项目包含一系列的数据访问类和方法以从数据库或其他数据媒介读取和保存数据。它也有助于把数据访 阅读全文
posted @ 2016-07-08 14:44 天下滋味 阅读(322) 评论(2) 推荐(0) 编辑
摘要: 1.0下载文件 2.0 打压缩包下载 阅读全文
posted @ 2016-06-29 14:56 天下滋味 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: 由于发布网站上Quartz.net的定时调度会被IIS回收不执行,解决的方法写Windows服务-案列【每天早晨8点删除过期35天的域名】 整了个三成架构:从Nuget成程序管理包下载Quart类库和TopShelf类库 1.创建定时调度Quartz类 2.创建从数据库中查询过期的域名执行删除方法的 阅读全文
posted @ 2016-06-01 11:49 天下滋味 阅读(4371) 评论(2) 推荐(4) 编辑
摘要: //声明函数 @helper GetWeek(int week) {switch (week){ case 0: @:星期天 break; case 1: @:星期一 break; ... 阅读全文
posted @ 2015-12-05 09:38 天下滋味 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 1.两个类的父类里都有这四个属性2.当前视图类的对象有控制器的方法创建并将控制器的这四个属性传给视图类。Model 其实就是DataBag.ModelTempData在控制器类里的不同方法共享数据ViewData["Key"]其实就是View.Bag 阅读全文
posted @ 2015-12-03 13:38 天下滋味 阅读(192) 评论(0) 推荐(0) 编辑