随笔分类 -  .NET相关内容

摘要:using System; using System.Data.Common; using System.Data.Entity.Core.Objects; using System.Data.Entity.Infrastructure; using System.Linq; namespace ConsoleApplication2 { cl... 阅读全文
posted @ 2015-11-09 13:02 黎东海 阅读(744) 评论(0) 推荐(0) 编辑
摘要:public class yms_Entity where T :DbContext { private static T _instance; public static readonly object SyncObject = new object(); ... 阅读全文
posted @ 2015-04-07 17:43 黎东海 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-22 11:22 黎东海 阅读(100) 评论(0) 推荐(0) 编辑
摘要://取当前整个星期时间范围DateTime startDate = DateTime.Today.Date.AddDays(-(int)DateTime.Today.DayOfWeek), // prev sunday 00:00endDate = startDate.AddDays(7); // next sunday 00:00//取当前整个月时间范围int CurrentYear = Dat... 阅读全文
posted @ 2013-04-20 17:58 黎东海 阅读(751) 评论(0) 推荐(0) 编辑
摘要:using System;using System.ComponentModel;using System.Linq;[Category("nice")]class Foo { }static class Program{ static void Main() { var ca = TypeDescriptor.GetAttributes(typeof(Foo)) ... 阅读全文
posted @ 2013-04-20 11:40 黎东海 阅读(2260) 评论(1) 推荐(1) 编辑
摘要:Amethyst IDE http://www.sapphiresteel.com/Download-Amethyst-Adobe-Flash 阅读全文
posted @ 2012-12-09 12:18 黎东海 阅读(174) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://blog.bossma.cn/archives/2009/09/271 一个项目要用到ActiveX控件,参照网上众多的例子,ActiveX控件倒是很容易就搞出来了; 然后做了一个【安装项目】,倒是可以使用,只不过需要在客户端手动点击安装,下一步,下一步…觉得不是很爽; 又试了试【CAB项目】,好像没人用VS2008来做,费了点功夫,终于找到解决办法。 特... 阅读全文
posted @ 2012-12-09 11:53 黎东海 阅读(251) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示