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
Entity Framework
无法直接使用泛型,但是我们可以通过使用继承的办法来间接使用泛型。Imports System.Data.EntityImports
System.ComponentModel.DataAnnotationsModule Module1 Sub Main() Data...
分类:
其他好文 时间:
2014-05-26 16:38:59
阅读次数:
237
概述
现在用的操作系统是Win8.1,用VMware创建一个虚拟机,3G内存(物理内存是6G,分一半),23G硬盘,其中3G用于swap分区,10G用于host
system,10G用于建立LFS系统。 创建虚拟机 使用VMware7.1.2创建一个虚拟机,硬盘23G,内存3G。 硬盘分区 分3个区...
分类:
系统相关 时间:
2014-05-25 23:09:49
阅读次数:
479
using System;using System.Drawing;using
System.Windows.Forms;using AForge.Video;using AForge.Video.DirectShow;namespace
CameraCapture{ public parti...
分类:
Web程序 时间:
2014-05-25 22:30:32
阅读次数:
335
using System.Windows;using
System.Windows.Input;namespace TestLauncher.Tools{ internal class DragDropHelper
{ public static readonly DependencyPr...
分类:
其他好文 时间:
2014-05-25 22:05:48
阅读次数:
515
mac下一般用smb服务来进行远程文件访问,但要用FTP的话,高版本的mac
os默认关掉了,可以用如下命令打开:sudo -s launchctl load -w
/System/Library/LaunchDaemons/ftp.plist
分类:
其他好文 时间:
2014-05-25 22:00:27
阅读次数:
242
菜单: 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