摘要:
建立下述测试数据,通过MapReduce统计每个班级学生数及成绩和。代码如下:public string SumStudentScore(){ var collection = _dataBase.GetCollection("StudentInfo"); //按照班级(Class)进行... 阅读全文
posted @ 2015-02-05 16:34 ndaysy 阅读(1199) 评论(0) 推荐(0)
|
|
|
|
摘要:
建立下述测试数据,通过MapReduce统计每个班级学生数及成绩和。代码如下:public string SumStudentScore(){ var collection = _dataBase.GetCollection("StudentInfo"); //按照班级(Class)进行... 阅读全文
posted @ 2015-02-05 16:34 ndaysy 阅读(1199) 评论(0) 推荐(0)
摘要:
IntroductionBefore .NET, we were always looking for a way to log current method name in a log file for better logging. But, there were no functionalities that could have helped in this, and it was left as an uncompleted job.But, with .NET, we could easily find out the name of the current method or p 阅读全文
posted @ 2013-09-02 22:37 ndaysy 阅读(931) 评论(0) 推荐(1)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace ConsoleGetSysMemory{ class Program { [StructLayout(LayoutKind.Sequential)] public struct MEMORYSTATUSEX { public uint dwLength; public uint dwMemoryLoad; public ulong ullT 阅读全文
posted @ 2013-07-09 16:49 ndaysy 阅读(1610) 评论(0) 推荐(0)
摘要:
mobile中使用NetcfSvcUtil.exe生成代理类,发现保存数字到Server端时数字总为0。方法一:参考文章(http://blogs.msdn.com/mahatim/archive/2009/04/27/using-wcf-netcfsvcutil-exe-setting-value-types-to-be-sent-from-wcf-mobile-client.aspx)serv... 阅读全文
posted @ 2009-12-12 15:18 ndaysy 阅读(626) 评论(0) 推荐(0)
摘要:
CEQuery支持 CE库(sdf)创建、修改、编辑、查询、导出脚本,从Sql Server导出为CE(包括数据)等功能。目前发现问题:从Sql Server导出为CE时,decimal被转换为numeric会丢失精度,varchar会被转换为nchar,需要自己修改导出脚本。下载地址:http://www.codeproject.com/KB/database/CEQuery.aspx介绍:CE... 阅读全文
posted @ 2009-12-12 14:11 ndaysy 阅读(1145) 评论(0) 推荐(0)
摘要:
mobile中的DataGrid没有提供滚动事件,在DataGrid数据编辑中将会遇到很多困扰。下面提供一种间接方式处理DataGrid的滚动事件。(需设置vScrollBar的LargeChange为1,否则达不到预期效果)在DataGrid右侧滚动条位置放置一个vScrollBar挡住DataGrid默认的滚动条在DataGrid的数据绑定事件中设置vScrollBar的Maximum为Dat... 阅读全文
posted @ 2009-12-12 13:44 ndaysy 阅读(434) 评论(0) 推荐(0) |
|