enterprise library 5 unity使用方法
摘要:通过使用unity容器,从配置文件里读取配置,解析出一个接口的实现,或在程序里指定一个接口的实现:1、先建一个项目,名字为ClassLibrary,里面有ILogger.cs Logger.csLogger.cs:using System;using System.Collections.Generic;using System.Linq;using Microsoft.Practices.Unity;using System.Text;namespace ClassLibrary{ public class TextLogger : ILogger { ...
阅读全文
posted @
2012-12-11 22:54
袁晓平
阅读(434)
推荐(0)
enterprise library 5 Data应用
摘要:项目里只需引Microsoft.Practices.EnterpriseLibrary.Data.dll就可以配置:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,
阅读全文
posted @
2012-12-10 11:51
袁晓平
阅读(412)
推荐(0)
codesmith引用多个模板生成代码
摘要:<%-- Name:Author: Description: --%><%@ CodeTemplate Language="C#" TargetLanguage="Text" Src="" Inherits="" Debug="False" CompilerVersion="v3.5" Description="Template description here." %><%@ Register Name="Enti
阅读全文
posted @
2012-12-07 22:31
袁晓平
阅读(230)
推荐(0)
公司框架BO模板
摘要:<%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema&
阅读全文
posted @
2012-12-05 20:48
袁晓平
阅读(385)
推荐(0)
公司框架DAO模板
摘要:<%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema&
阅读全文
posted @
2012-12-05 20:47
袁晓平
阅读(282)
推荐(0)
公司框架实体类模板
摘要:<%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema&
阅读全文
posted @
2012-12-05 20:32
袁晓平
阅读(329)
推荐(0)
使用QHttp与C#编写的服务端交互(编译环境mingw)
摘要:打开qtcreator,新建一个项目,然后加一个头文件及源代码文件,如下:QtHttp.h:#ifndef QTHTTP_H #define QTHTTP_H #include <Qt/QObject.h> #include <Qt/qhttp.h> #include <QtCore/QString> #include <QtDebug> #include <Qt/qbytearray.h> class QtHttp : QObject { Q_OBJECT public: QtHttp(); virtual ~QtHttp(); p
阅读全文
posted @
2012-12-02 17:24
袁晓平
阅读(353)
推荐(0)