System.Transactions 命名空间中除了上一节中提到的基于 Transaction
类的显式编程模型,还提供使用 TransactionScope 类的隐式编程模型,它与显示编程模型相比,更加方便简单,它也是MSDN中建议使用的编程模型。
下面,我们基于TransactionScope...
分类:
其他好文 时间:
2014-05-26 20:19:42
阅读次数:
312
新建项目如packEXE,添加外部文件f.exe作为嵌入的资源,如图:添加代码:using
System.Reflection;//++using System.IO;namespace packEXE{ /// /// MainWindow.xaml
的交互逻辑 /// ...
分类:
Web程序 时间:
2014-05-26 20:14:43
阅读次数:
450
C#中的日期处理函数//2007年4月24日this.TextBox6.Text =
System.DateTime.Now.ToString("D");//2007-4-24this.TextBox7.Text =
System.DateTime.Now.ToString("d");//2007年...
分类:
其他好文 时间:
2014-05-26 20:11:23
阅读次数:
275
Google File System中文版Google Bigtable中文版Google
MapReduce中文版
分类:
其他好文 时间:
2014-05-26 19:48:38
阅读次数:
184
将flash嵌入WPF页面://添加加载flash的控件 // 创建 host 对象
System.Windows.Forms.Integration.WindowsFormsHost host = new
System.Windows.Forms.Integration.WindowsFormsH...
分类:
其他好文 时间:
2014-05-26 19:10:54
阅读次数:
271
Entity Framework
无法直接使用泛型,但是我们可以通过使用继承的办法来间接使用泛型。Imports System.Data.EntityImports
System.ComponentModel.DataAnnotationsModule Module1 Sub Main() Data...
分类:
其他好文 时间:
2014-05-26 16:38:59
阅读次数:
237
#encoding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from sgmllib import SGMLParser
import re
import urllib
class URLLister(SGMLParser):
def start_a(self, attrs):
url = [v ...
分类:
编程语言 时间:
2014-05-25 22:47:56
阅读次数:
340
菜单: System-Preferences-Keyboard Shortcuts在Desktop分类下找到“Run a terminal”点击Run a terminal,按下需要的快捷键,比如Ctrl+Alt+T,即可。补充终端窗口下的快捷:复制:Shift+Ctrl+C粘贴:Shift+Ctrl+V开启新窗口:Shift+Ctrl+N开启新分页(Tab):Shift+Ctrl+T分页之间切换...
分类:
其他好文 时间:
2014-05-25 21:23:37
阅读次数:
410
代码记录(备查):/** * 把一个文件中的内容以字符串的形式读出来 * * @author
zhipengs * */public class FileToString { public static void main(String[] args)
{ System.ou...
分类:
编程语言 时间:
2014-05-25 20:15:13
阅读次数:
363
date:20140525auth:Jin一、服务端启动服务和创建账号# su - oracle$
lsnrctl start$ sqlplus / as sysdbaSQL> startupSQL> alter user sys
identified by admin; #修改sys密码User ...
分类:
数据库 时间:
2014-05-25 20:11:31
阅读次数:
408