摘要: 什么是Build Action? Build Action is how the file relates to the build and deployment processes.在Visual Studio 2010的Windows Phone工程中, 有多个build action。它们之间有什么区别呢?* None: 此文件不参与编译也不被输出。比如:工程中的文档文件, readme.txt。* Compile: 参与编译并输出。主要是代码文件。* Content: 不参与编译,但会被输出。* Embedded Resource: 此文件被嵌入到主工程生成的DLL或exe中。主要是资 阅读全文
posted @ 2012-10-06 18:44 self.refactoring 阅读(361) 评论(1) 推荐(1) 编辑
摘要: Linq to sql是.NET上的ORM类库。因此首先我们需要定义O(Object),此处我们定义如下类:View Code publicclassCode{publicstringId{get;set;}publicstringCodeTypeId{get;set;}publicstringCodeExtensionId{get;set;}publicstringCodeValue{get;set;}publicstringDisplayText{get;set;}接下来就需要定义R(Relationship)和M(Mapping)Linq to sql为我们提供两种方式来进行Relati 阅读全文
posted @ 2012-10-06 02:13 self.refactoring 阅读(461) 评论(0) 推荐(0) 编辑