摘要:
做任何恢复操作之前,请先备份.mdf, .ndf和.ldf文件。 use master go --将处于suspect状态下的数据库设置为紧急状态 alter database <DatabaseName> set emergency go --设置该数据库为单用户立即回滚模式 alter data 阅读全文
摘要:
以下为常规的需求,除非需求有明确说明,如密码输入框中可以输入空格。 输入框 1. 为空,但页面中明确说明不能为空(带有星号或者只有这一个输入框),有以下两种情况: a. 不进行输入或者使其为空:焦点离开后应有相应的提示,提交后页面无跳转并仍有相应的提示。 b. 输入框中存在一个或者多个空格:焦点离开 阅读全文
摘要:
When you compile an application, you can specify that it should run on a Windows 64-bit operating system either as a native application or under WOW64 阅读全文
摘要:
WoW64 (Windows 32-bit On Windows 64-bit) is a subsystem of the Windows operating system that is capable of running 32-bit applications and is included 阅读全文
摘要:
Hi, I have my projects in VS 2008 SP1 and is using .NET 3.5 SP1. Till now we are developing application in Any CPU platform setting for all the projec 阅读全文
摘要:
I received a question about this recently, so i figured i'd elaborate here with a little example...Let's assume we have the followingthree dlls:anycpu.dll-- compiled "any cpu"x86.dll -- compiled "x86"x64.dll -- compiled "x64"And the following three exes:anycpu.e 阅读全文
摘要:
/platform (Specify Output Platform) (C# Compiler Options) Specifies which version of the common language runtime (CLR) can run the assembly.Copy/platform:stringParametersstring x86, Itanium, x64, or anycpu (default).Remarksx86 compiles your assembly to be run by the 32-bit, x86-compatible common lan 阅读全文
摘要:
摘要:本文将谈到Visual C# 2010中的新特性—协变和逆变。随着Visual Studio 2010 Beta1的发布,更多的新功能期待大家的试用。1. 协变和逆变 开发时经常与到以下的问题,首先看代码: 定义一个水果类和继承了该类的苹果类: public class Fruit { public string Name { get; set; } } public class... 阅读全文
摘要:
51CTO.com曾经报道过讲解C# 4.0中的动态类型和动态编程的文章,也曾对C# 4.0动态编程技巧做过一些演示。但依然有读者不太了解dynamic到底有那些作用。本文摘选博主“胡里胡涂”的一篇文章,针对作者提出的两个问题对dynamic进行理解。◆写程序时少了智能感知◆运行程序时速度变慢(反射) 看完New features in CSharp 4.docx才恍然明白... 阅读全文
摘要:
MIME的编码介绍(由网上资料和实践经验整合)一、MIME: Multipurpose Internet Mail Extensions英国帝国大学计算机在线字典FOLDOC对MIME的解释为:“多部分(multi-part)、多媒体电子邮件和WWW超文本的一种编码标准,用于传送诸如图形、声音和传真等非文本数据。MIME定义于RFC1341,用MIMENCODE的方法将二进制数据转换成... 阅读全文