@if (!Model.DBType.StartsWith("Oracle")) { } @{ var index = 1; } @foreach (var item in Model.Columns) { @if (!Model.DBType.StartsWith("Oracle")) { } index++; }
@Model.TableName
@Model.Comment 返回目录
序号 列名 数据类型 长度 小数位数 主键自增允许空 默认值 列说明
@index @item.ColumnName @item.ColumnTypeName @(string.IsNullOrWhiteSpace(item.Length)? " ":item.Length) @(string.IsNullOrWhiteSpace(item.Scale)? " ":item.Scale) @(string.IsNullOrWhiteSpace(item.IsPK)?" ": item.IsPK)@(string.IsNullOrWhiteSpace(item.IsIdentity) ?" ": item.IsIdentity)@(string.IsNullOrWhiteSpace(item.CanNull) ?" ": item.CanNull) @(string.IsNullOrWhiteSpace(item.DefaultVal) ?" ": item.DefaultVal) @(string.IsNullOrWhiteSpace(item.Comment) ?" ": item.Comment)