+
+
+
+
+
+
+
数据库表目录
+
+
+
+ 表
+ | 序号 | 表名 | 表说明 |
+ @for (int j = 0; j < Model.Tables.Count; j++)
+ {
+ var item = Model.Tables[j];
+
+ | @( j + 1 ) |
+ @item.TableName |
+ @(!string.IsNullOrWhiteSpace(item.Comment) ? item.Comment : " ") |
+
+ }
+
+
+ @if (Model.Views.Count > 0)
+ {
+
+ 视图
+ | 序号 | 视图名称 |
+
+ @{ var index = 1; }
+ @foreach (var item in Model.Views)
+ {
+
+ | @index |
+ @item.Key |
+
+ index++;
+ }
+
+
+ }
+
+ @if (Model.Procs.Count > 0)
+ {
+
+ 存储过程
+ | 序号 | 存储过程名称 |
+
+ @{ var index = 1; }
+ @foreach (var item in Model.Procs)
+ {
+
+ | @index |
+ @item.Key |
+
+ index++;
+ }
+
+
+ }
+
+
+
+
+ @foreach (var item in Model.Tables)
+ {
+
+
+ 表名:@item.TableName
+
返回目录
+
+
表注释:@item.Comment
+
+
+
+
+ | 序号 |
+ 列名 |
+ 数据类型 |
+ 长度 |
+ 小数位数 |
+ 主键 |
+
+ @if (!item.DBType.StartsWith("Oracle"))
+ {
+ 自增 |
+ }
+
+ 允许空 |
+ 默认值 |
+ 列说明 |
+
+
+ @foreach (var column in item.Columns)
+ {
+
+ | @column.ColumnOrder |
+ @column.ColumnName |
+ @column.ColumnTypeName |
+ @column.Length |
+ @column.Scale |
+ @column.IsPK |
+
+ @if (!item.DBType.StartsWith("Oracle"))
+ {
+ @column.IsIdentity |
+ }
+
+ @column.CanNull |
+ @column.DefaultVal |
+ @column.Comment |
+
+ }
+
+
+
+
+ }
+
+ @if (Model.Views.Count > 0)
+ {
+ foreach (var item in Model.Views)
+ {
+
+
+ 视图名称:@item.Key
+
返回目录
+
+
+
+ }
+ }
+
+ @if (Model.Procs.Count > 0)
+ {
+ foreach (var item in Model.Procs)
+ {
+
+
+ 存储过程名称:@item.Key
+
返回目录
+
+
+
+ }
+ }
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/DocTools/TplFile/pdf/msyh.ttf b/DocTools/TplFile/pdf/msyh.ttf
new file mode 100644
index 0000000..ea3c090
Binary files /dev/null and b/DocTools/TplFile/pdf/msyh.ttf differ
diff --git a/DocTools/app.config b/DocTools/app.config
new file mode 100644
index 0000000..ef94230
--- /dev/null
+++ b/DocTools/app.config
@@ -0,0 +1,19 @@
+
+