刚刚开始机房重构的时候用的最多的就是DataTable,在用的时候感觉有一点点别扭,因为D层从数据库中
把数据取出来之后直接通过DataTable返回到B层和U层了,这样对于数据库数据的安全性不太好。然后慢慢知
道了泛型,通过泛型可以很好的解决数据安全的问题
一、DataTable
Public Function QueryCard(card As Entity.CardEnti...
分类:
其他好文 时间:
2015-02-26 10:05:13
阅读次数:
271
http://acm.hdu.edu.cn/showproblem.php?pid=4336题意:n张卡片,每一次取一个盒子,盒子里装有卡片i的概率是p[i],求得到所有卡片所需要开的盒子的期望数(n#include using namespace std;const int N=22;int n;...
分类:
其他好文 时间:
2015-02-23 15:21:47
阅读次数:
147
回顾 继续介绍NODEJS开发微信卡券功能,昨天简单演示了微信接口的Access Token的原理和用法,还有门店的添加和查询,今天我们将介绍卡券的创建以及核销的最基本的流程。 本文将使用NodeJS作为开发语言,以wechat-card,和官方文档为主进行演示。创建卡券 昨天我们已经添加完成...
分类:
微信 时间:
2015-02-15 20:31:25
阅读次数:
439
问题及代码:
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must ...
分类:
其他好文 时间:
2015-02-15 13:33:05
阅读次数:
205
using System.Collections;using System.Collections.Generic;using System.Linq;namespace SGGame{ public enum SORT_METHOD { NONE, BY_CARD_SCORE = 1, BY_CA...
分类:
编程语言 时间:
2015-02-12 18:07:07
阅读次数:
171
我们的男主现在手中有n*c张牌,其中有c(#define eps 1e-9#define FOR(i,j,k) for(int i=j;i=dp[num]) { dp[++num]=p[i].hash; }else ...
分类:
其他好文 时间:
2015-02-11 12:37:29
阅读次数:
160
以下“失声疗法”是针对HDMI被设置为默认输出的情况: aplay -l 是用来查看音视频设备与卡号信息的; 然后 1.sudo gedit /etc/asound.conf 2.在文件中写入defaults.pcm.card 1 defaults.pcm.d...
分类:
系统相关 时间:
2015-02-09 20:15:03
阅读次数:
220
HDU 4336 Card Collector(容斥原理 or 状压求期望dp)...
分类:
其他好文 时间:
2015-02-09 16:10:53
阅读次数:
137
http://www.android.gs/mount-google-nexus-4-mtp-sd-card-on-ubuntu-and-other-linux-computers/https://wiki.debian.org/mtphttp://roger.steneteg.org/299/mo...
分类:
其他好文 时间:
2015-02-08 10:17:42
阅读次数:
227
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be per...
分类:
其他好文 时间:
2015-02-06 09:36:23
阅读次数:
130