33 | @for (var t = 0; t < Model.Tables.Count; t++)
34 | {
35 | var table = Model.Tables[t];
36 | var tableTabKey = $"{modalId}-{table.TableName.ToLower()}";
37 |
38 |
39 |
@{@table.TableName} Data Model
40 |
41 |
42 |
43 |
44 | # |
45 | Column Name |
46 | Type |
47 |
48 |
49 |
50 | @for (var c = 0; c < table.Columns.Count; c++)
51 | {
52 | var column = table.Columns[c];
53 |
54 |
55 | @(c + 1) |
56 |
57 | @column.ColumnName
58 | @if (column.IsPrimaryKey)
59 | {
60 | vpn_key
61 | }
62 | @if (column.IsForeignKey)
63 | {
64 | vpn_key
65 | }
66 | @if (column.IsUniqueKey)
67 | {
68 | vpn_key
69 | }
70 | |
71 |
72 | @column.Type.GetNameForCoding()
73 |
74 |
75 | @column.DataType
76 | @if (column.MaxLength > 0)
77 | {
78 | (@column.MaxLength)
79 | }
80 |
81 |
82 | |
83 |
84 | }
85 |
86 |
87 |
@{@table.DataModelName}.cs
88 |
@DataModelGenerator.GenerateDataModelFromTable(table)
89 |
90 | }
91 |