Browse Source

TODO; fixed twig templates

tags/v0.1.0
Robin Thoni 8 years ago
parent
commit
ae780c80cf

+ 1
- 1
Luticate2.Auth/DataAccess/code-from-ds/DataSource.twig View File

@@ -41,7 +41,7 @@ namespace Luticate2.Auth.DataAccess
41 41
             modelBuilder.Entity<{{ fk.getSourceTable().getName() }}>()
42 42
                 .HasOne(e => e.{{ fk.getSourceForeignKeyName() }})
43 43
                 .WithMany(e => e.{{ fk.getTargetForeignKeyName() }})
44
-                .HasForeignKey("{% for column in fk.getSourceColumns() %}{{ column.getName }}{% if not (loop.last) %}, {% endif %}{% endfor %}")
44
+                .HasForeignKey({% for column in fk.getSourceColumns() %}"{{ column.getName }}"{% if not (loop.last) %}, {% endif %}{% endfor %})
45 45
                 .HasConstraintName("{{ fk.getName() }}");
46 46
             {% endfor %}
47 47
             {% endif %}{% endfor %}

+ 1
- 1
Luticate2.Auth/DataAccess/code-from-ds/Models.twig View File

@@ -14,7 +14,7 @@ namespace Luticate2.Auth.DataAccess.Models
14 14
         public virtual {{ fk.getTargetTable().getName() }} {{ fk.getSourceForeignKeyName() }} { get; set; }
15 15
         {% endif %}{% endfor %}
16 16
         {% for fk in table.getTargetForeignKeys() %}{% if (fk.isSelected()) %}
17
-        public virtual ICollection<{{ fk.getSourceTable().getName() }}> {{ fk.getTargetForeignKeyName() }} { get; set; }
17
+        public virtual IList<{{ fk.getSourceTable().getName() }}> {{ fk.getTargetForeignKeyName() }} { get; set; }
18 18
         {% endif %}{% endfor %}
19 19
     }
20 20
 }

+ 0
- 2
TODO View File

@@ -1,5 +1,3 @@
1
-websockets
2 1
 authentication filter
3 2
 logs
4 3
 log exceptions in middleware
5
-LuCrudBusiness check user?

+ 1
- 1
TestUtils/DataAccess/code-from-ds/DataSource.twig View File

@@ -42,7 +42,7 @@ namespace TestUtils.DataAccess
42 42
             modelBuilder.Entity<{{ fk.getSourceTable().getName() }}>()
43 43
                 .HasOne(e => e.{{ fk.getSourceForeignKeyName() }})
44 44
                 .WithMany(e => e.{{ fk.getTargetForeignKeyName() }})
45
-                .HasForeignKey("{% for column in fk.getSourceColumns() %}{{ column.getName }}{% if not (loop.last) %}, {% endif %}{% endfor %}")
45
+                .HasForeignKey({% for column in fk.getSourceColumns() %}"{{ column.getName }}"{% if not (loop.last) %}, {% endif %}{% endfor %})
46 46
                 .HasConstraintName("{{ fk.getName() }}");
47 47
             {% endfor %}
48 48
             {% endif %}{% endfor %}

+ 1
- 1
TestUtils/DataAccess/code-from-ds/Models.twig View File

@@ -14,7 +14,7 @@ namespace TestUtils.DataAccess.Models
14 14
         public virtual {{ fk.getTargetTable().getName() }} {{ fk.getSourceForeignKeyName() }} { get; set; }
15 15
         {% endif %}{% endfor %}
16 16
         {% for fk in table.getTargetForeignKeys() %}{% if (fk.isSelected()) %}
17
-        public virtual ICollection<{{ fk.getSourceTable().getName() }}> {{ fk.getTargetForeignKeyName() }} { get; set; }
17
+        public virtual IList<{{ fk.getSourceTable().getName() }}> {{ fk.getTargetForeignKeyName() }} { get; set; }
18 18
         {% endif %}{% endfor %}
19 19
     }
20 20
 }

Loading…
Cancel
Save