Googler

两情相悦,又岂在朝朝暮暮。

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页

2013年4月2日

根据DbSchema生成代码

摘要: public interface IDbSchema { IDbTableSchema[] GetSchema(); } public interface IDbTableSchema { string Name { get; } IDbColumnSchema[] Columns { get; } } public interface IDbColumnSchema { int Ordinal { get; } string Name { get; } boo... 阅读全文

posted @ 2013-04-02 18:45 RockyLOMO 阅读(919) 评论(0) 推荐(1) 编辑

根据DbSchema生成代码2

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel;using System.Threading;using System.IO;using Rocky;namespace Rocky.CodeBuilder{ public class DbBuilder : Disposable { #region 字段 public event EventHandler DoWork; ... 阅读全文

posted @ 2013-04-02 18:28 RockyLOMO 阅读(301) 评论(0) 推荐(0) 编辑

2013年3月29日

C# WeakEvent

摘要: using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Reflection.Emit;using System.Runtime.CompilerServices;using System.Text;namespace Rocky{ internal delegate bool Forwarder(WeakReference weakRef, object sender, EventArgs e... 阅读全文

posted @ 2013-03-29 11:58 RockyLOMO 阅读(455) 评论(0) 推荐(0) 编辑

2013年3月22日

MethodPerformanceMonitor

摘要: /// <summary> /// System.Security.SecurityElement.Escape(); /// </summary> /// <param name="xml"></param> /// <returns></returns> public static string GetSafeXml(string xml) { //s = <You're angle & evil>, ['&<>] return Regex.R 阅读全文

posted @ 2013-03-22 11:57 RockyLOMO 阅读(233) 评论(0) 推荐(0) 编辑

2013年3月18日

Socket 实现HttpClient

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics.Contracts;using System.Collections.Specialized;using System.IO;using System.Net;using System.Net.Sockets;using System.Net.Security;using System.Net.Mime;using System.Reflection;namespace Rocky. 阅读全文

posted @ 2013-03-18 18:54 RockyLOMO 阅读(1823) 评论(1) 推荐(0) 编辑

2013年3月4日

MD5Hash16

摘要: public static string MD5Hash16(string input) { return MD5Hash16(Encoding.UTF8.GetBytes(input)); } public static string MD5Hash16(byte[] input) { var hasher = MD5.Create(); byte[] data = hasher.ComputeHash(input); string ... 阅读全文

posted @ 2013-03-04 10:23 RockyLOMO 阅读(293) 评论(0) 推荐(0) 编辑

2013年3月1日

Emit Method Generator

摘要: View Code using System;using System.Reflection.Emit;namespace Rocky{ /// <summary> /// ForState /// </summary> internal class ForState { private Label beginLabel; private object end; private Label endLabel; private LocalBuilder indexVariable; private... 阅读全文

posted @ 2013-03-01 18:54 RockyLOMO 阅读(466) 评论(1) 推荐(0) 编辑

Release Validator

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;namespace Rocky{ /// <summary> /// Release下会忽略此类所有方法 /// </summary> [DebuggerStepThrough] public static class Validator { #region Fields public const string Debu... 阅读全文

posted @ 2013-03-01 17:32 RockyLOMO 阅读(206) 评论(0) 推荐(0) 编辑

2013年2月20日

ProxySource

摘要: #国内http://www.site-digger.com/html/articles/20110516/proxieslist.htmlhttp://cn-proxy.comhttp://www.cnproxy.com/proxyedu[1-2].htmlhttp://www.cnproxy.co... 阅读全文

posted @ 2013-02-20 09:39 RockyLOMO 阅读(857) 评论(0) 推荐(0) 编辑

2013年1月22日

分布式架构

摘要: 1. 实体职责:1.1. PO(Persistant Object) 例如EntityFramework中生成的数据实体,映射数据库中的表结构;1.2. BO(Business Object) 对上层暴露的业务实体。架构师在开发初期定义的业务接口中所用到的实体;1.3. DTO(Data Transfer Object) 分布式服务(WebService/WCF)暴露的契约实体;1.4. VO(View Object) 例如ASP.NET MVC中的V(UI实体);1.5. 参考:http://www.cnblogs.com/BigTall/archive/2007/12/12/991779. 阅读全文

posted @ 2013-01-22 14:35 RockyLOMO 阅读(367) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页

导航

Apple/苹果笔记本 Mac Air MC968CH/A 行货在保 I5 11寸 超级本