資源簡(jiǎn)介
從Hibernate中提取的SQL格式化功能,去除了沒(méi)用的功能,沒(méi)有第三方dll
代碼片段和文件信息
namespace?NHibernate.AdoNet.Util
{
????using?NHibernate.Util;
????using?System;
????using?System.Collections.Generic;
????using?System.Text;
????public?class?BasicFormatter?:?IFormatter
????{
????????protected?static?readonly?HashSet?beginClauses?=?new?HashSet();
????????protected?static?readonly?HashSet?dml?=?new?HashSet();
????????protected?static?readonly?HashSet?endClauses?=?new?HashSet();
????????protected?const?string?IndentString?=?“????“;
????????protected?const?string?Initial?=?“\n????“;
????????protected?static?readonly?HashSet?logical?=?new?HashSet();
????????protected?static?readonly?HashSet?misc?=?new?HashSet();
????????protected?static?readonly?HashSet?quantifiers?=?new?HashSet();
????????static?BasicFormatter()
????????{
????????????beginClauses.Add(“l(fā)eft“);
????????????beginClauses.Add(“right“);
????????????beginClauses.Add(“inner“);
????????????begin
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????15007??2016-10-18?22:34??sqlformatter\BasicFormatter.cs
?????文件???????4673??2016-10-18?22:25??sqlformatter\DdlFormatter.cs
?????文件???????1495??2016-10-18?22:25??sqlformatter\Formatst
?????文件????????152??2016-10-18?22:25??sqlformatter\IFormatter.cs
?????文件????????981??2016-10-18?22:25??sqlformatter\Program.cs
?????文件???????3306??2016-10-18?22:25??sqlformatter\StringTokenizer.cs
?????目錄??????????0??2016-10-18?22:40??sqlformatter
-----------?---------??----------?-----??----
????????????????25614????????????????????7
評(píng)論
共有 條評(píng)論