123456789101112131415161718192021222324 |
- {#- This file can be edited -#}
- /**
- * This is a generated file. Do not edit, changes will be overwritten.
- */
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
-
- namespace WebApi.DataAccess.Models
- {
- public partial class {{ table.getName() | escapeReservedWords }}
- {
- {% for column in table.getColumns() %}{% if (column.isSelected()) %}
- public {{ column.getType().getLanguageTypeName() }}{% if (not (column.isNotNull()) and (column.isTypeNotNull())) %}?{% endif %} {{ column.getName() | escapeReservedWords }} { get; set; }
- {% endif %}{% endfor %}
- {% for fk in table.getSourceForeignKeys() %}{% if (fk.isSelected()) %}
- public {{ fk.getTargetTable().getName() | escapeReservedWords }} {{ fk.getSourceForeignKeyName() | escapeReservedWords }} { get; set; }
- {% endif %}{% endfor %}
- {% for fk in table.getTargetForeignKeys() %}{% if (fk.isSelected()) %}
- public IList<{{ fk.getSourceTable().getName() | escapeReservedWords }}> {{ fk.getTargetForeignKeyName() | escapeReservedWords }} { get; set; }
- {% endif %}{% endfor %}
- }
- }
|