自己封装的一个js方法用于获取显示的星期和日期时间 /** * 获取用于显示的星期和日期时间 * @param date * @returns {string} */ function getWeek(date){ //将字符串日期转换日期对象 date = date.replace(/-/g, '/'); var dd = new Date(date); var curDate = new Date(); var curDate2 = new Date(); var m = dd.getMon
基于Dapper二次封装了一个易用的ORM工具类:SqlDapperUtil,把日常能用到的各种CRUD都进行了简化封装,让普通程序员只需关注业务即可,因为非常简单,故直接贴源代码,大家若需使用可以直接复制到项目中,该SqlDapperUtil已广泛用于公司项目中. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
ylbtech-SilverLight-DataBinding: Bingding to a Collection Objects(绑定一个集合对象) 1.A, Building a Data Object(创建一个数据对象) 1.B, Calling a Data Service(调用一个数据服务)[测试数据] 1.C, Binding to a Collection of Objects(绑定一个对象集合) 1.D, Binding to a Collection of Objects 2
当前所在的公司偏好使用 Collection<T>(System.Collections.ObjectModel), 这货比起List<T>不仅少了很多实用方法, 而且还有一个坑它的一个构造函数支持传入IList实例Collection<T>(IList<T>)使用这个构造函数创建出来的Collection实例, 居然要影响原来的IList实例MSDN的描述为: Initializes a new instance of the Collection<