using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Luticate2.Auth.DataAccess.Models { public partial class {{ table.getName() }} { {% for column in table.getColumns() %}{% if (column.isSelected()) %} public {{ column.getType() }}{% if (not (column.isNotNull()) and (column.isTypeNotNull())) %}?{% endif %} {{ column.getName() }} { get; set; } {% endif %}{% endfor %} {% for fk in table.getSourceForeignKeys() %}{% if (fk.isSelected()) %} public {{ fk.getTargetTable().getName() }} {{ fk.getSourceForeignKeyName() }} { get; set; } {% endif %}{% endfor %} {% for fk in table.getTargetForeignKeys() %}{% if (fk.isSelected()) %} public ICollection<{{ fk.getSourceTable().getName() }}> {{ fk.getTargetForeignKeyName() }} { get; set; } {% endif %}{% endfor %} } }