2017年10月4日
摘要: https://dillieodigital.wordpress.com/2013/05/09/creating-dynamicconfigurable-parameterized-queries-in-entity-framework/ 阅读全文
posted @ 2017-10-04 00:12 hahahoo 阅读(121) 评论(0) 推荐(0) 编辑
  2017年8月13日
摘要: using (var db = new MyDbContext()) { string fromUser = ""; //sender string toUser = ""; //receiver var messages = db.Message.Where(x => x.FromUser == 阅读全文
posted @ 2017-08-13 15:15 hahahoo 阅读(2173) 评论(0) 推荐(0) 编辑
  2017年7月27日
摘要: var query = database.Posts // your starting point - table in the "from" statement .Join(database.Post_Metas, // the source table of the inner join pos 阅读全文
posted @ 2017-07-27 21:59 hahahoo 阅读(8092) 评论(0) 推荐(0) 编辑
  2017年6月28日
摘要: Enable-Migrations -EnableAutomaticMigrations dbcontent Add-Migration XXXXXUpdate-Database -Verbose//生成SQL基本,可在生产数据库中迁移Update-Database -Script -SourceM 阅读全文
posted @ 2017-06-28 00:39 hahahoo 阅读(229) 评论(0) 推荐(0) 编辑
  2011年3月8日
摘要: http://www.codeproject.com/KB/miscctrl/posScanner.aspx 阅读全文
posted @ 2011-03-08 16:43 hahahoo 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 硬件: EPSON TMH6000M软件: EPSON OPOS ADK 2.5 Microsoft POS for .net 1.12step 1.EPSON OPOS ADK 2.5 是pos打印机的驱动的集合. 安装后接上pos打印机,开始菜单里面有一个setup pos的工具, 添加pos打印机,选择合适的端口, 安装完成要给该pos打印机起一个LogicalName,供程序使用step 2安装Microsoft POS for .net 1.12, 这个是微软对POS设备的封装层.只要是符合国际标准的设备都能识别使用.step 3 .net代码 引用 Microsoft.PointO 阅读全文
posted @ 2011-03-08 15:31 hahahoo 阅读(1926) 评论(0) 推荐(0) 编辑
  2010年6月17日
摘要: 使用vs2005自动创建的.pfx数字证书默认有效期只有一年,并且“颁发者”、“颁发给”均为当前机器名和当前登陆用户名的组合,其实我们完全可以创建更友好的.pfx数字证书。打开Microsoft .NET Framework 的SDK命令提示,按以下步骤操作:1、创建一个自我签署的X.509证书(.cer)和一个.pvk私钥文件,用到makecert... 阅读全文
posted @ 2010-06-17 13:41 hahahoo 阅读(242) 评论(0) 推荐(0) 编辑
  2010年4月15日
摘要: http://www.cnblogs.com/88223100/archive/2008/04/14/1153331.html 阅读全文
posted @ 2010-04-15 23:47 hahahoo 阅读(192) 评论(0) 推荐(0) 编辑
  2010年3月21日
摘要: C#日期格式化 日期转化一为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-03 14:33:34 ,要转化为其他格式,要用到DateTime.ToString的方法(String, IFormatProvider),如下所示:using System;using System.Globalization;String format="D";DateTime date... 阅读全文
posted @ 2010-03-21 11:41 hahahoo 阅读(180) 评论(0) 推荐(0) 编辑
  2010年3月15日
摘要: 网上看来的usingSystem; usingSystem.Runtime.InteropServices; namespaceflyingzl { publicclassCloseWindow { [StructLayout(LayoutKind.Sequential,Pack=1)] internalstructTokPriv1Luid { publicintCount; publiclong... 阅读全文
posted @ 2010-03-15 10:56 hahahoo 阅读(821) 评论(0) 推荐(0) 编辑