代码改变世界

Silverlight编译范围

2012-10-27 00:04 by hongjiumu, 197 阅读, 0 推荐, 收藏,
摘要:Silverlight编译范围:1,先编译服务和逻辑;2,编译xaml所在的项目(不能少啊);3,编译Web; 阅读全文

RIATasks: A Simple Silverlight CRUD Example (using View Model)

2012-10-17 23:33 by hongjiumu, 281 阅读, 0 推荐, 收藏,
摘要:RIATasks: A Simple Silverlight CRUD Example (using View Model)http://www.codeproject.com/Articles/90071/RIATasks-A-Simple-Silverlight-CRUD-Example-using-VSilverlight学习点滴之一:使用WCF RIA构建应用http://www.veryhuo.com/a/view/35954.html怎样使用.NET RIA Services 创建 Silverlight Business Application(一)http://www.cnbl 阅读全文

System.Threading中Thread和Task区别

2012-10-06 22:46 by hongjiumu, 2338 阅读, 0 推荐, 收藏,
摘要:A task is something you want doing.A thread is one of possibly many workers who perform that task.In .NET 4.0 terms,a Task represents an asynchronous operation.Thread(s) are used to complete that operation by breaking the work up into chunks and assigning to seperate threads.Intel TBB and the OpenMP 阅读全文

匿名方法,Action,Func以及lambda的区别

2012-10-03 14:09 by hongjiumu, 1353 阅读, 0 推荐, 收藏,
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;namespace ConsoleApplication1{ public delegate int GetSum(object index); class Program { static void Main(string[] args) { /* ... 阅读全文

PetaPoco使用

2012-09-26 23:46 by hongjiumu, 4151 阅读, 0 推荐, 收藏,
摘要:<?xml version="1.0" encoding="utf-8" ?><configuration> <connectionStrings> <add name="connectionStringName" connectionString="server=localhost;database=0914;uid=sa;password=850414;" /> </connectionStrings></configuration>usi 阅读全文

委托理解

2012-09-24 18:18 by hongjiumu, 273 阅读, 0 推荐, 收藏,
摘要:委托在本质上是一个类,我们用delegate关键字声明的所有委托都继承自System.MulticastDelegate。后者又继承自System.Delegate类,System.Delegate类则继承自System.Object。委托既然是一个类,那么它可以被定义在任何地方,既可以定义在类的内部,也可以定义在类的外部。正如很多资料上所说的,委托是一种类型安全的函数回调机制,它不仅能够调用实例方法,也能调用静态方法,并且具备按顺序执行多个方法的能力。由于委托继承自System.MulticastDelegate类,自然也继承MulticastDelegate类的字段、属性和方法。这些成员中 阅读全文

如何解决sql server2008:将字符串转换为 uniqueidentifier 时出现语法错误

2012-09-17 17:25 by hongjiumu, 2221 阅读, 0 推荐, 收藏,
摘要:declare @parentKey char(36) set @parentKey='B4B519EF-13F9-4F85-A382-21362F337D9D' select [Pro_ProductCategory].[CategoryName]+'('+ cast((select COUNT(1)from Pro_ProductMST where ProductModelKey in (select ModelKey from Pro_ProductModel where CategoryKey=[Pro_ProductCategory].Category 阅读全文

c++连接mssql

2012-09-17 14:22 by hongjiumu, 2053 阅读, 0 推荐, 收藏,
摘要:# include <iostream>//# include "stdafx.h"# include <iomanip># import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "EndOfFile")int main(){ ::CoInitialize(NULL); try { _ConnectionPtr pConn("ADODB.Connection& 阅读全文

第一个c++

2012-09-17 09:39 by hongjiumu, 198 阅读, 0 推荐, 收藏,
摘要:# include <iostream> int main(){ std::cout << "Hello, world!" << std::endl; getchar(); return 0;} 阅读全文

NClass,终于找到了可以绘制类图的工具了!

2012-09-16 12:18 by hongjiumu, 3167 阅读, 0 推荐, 收藏,
摘要:以前用Visio绘制类图很不规范,很多地方需要耍小聪明,后来看到网上讲pd可以,但是我找了很久就是不行,总不至于要买吧!后来听说NClass,c# open source!下来一看,非常满意!以后就用这个了,说出来,心里好高兴,也希望在找类图工具的同人们带来好消息!呵呵! 阅读全文