Skip to content

Commit ce35164

Browse files
committed
Updated sample project: Prefix indices with tablename to match the autogenerated scheme.
1 parent 6f68918 commit ce35164

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SQLite.CodeFirst.Console/Entity/Player.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Player : IEntity
1212
[MaxLength(50)]
1313
public string FirstName { get; set; }
1414

15-
[Index("IX_LN")]
15+
[Index("IX_LastName_LN")] // Test for named index
1616
[MaxLength(50)]
1717
public string LastName { get; set; }
1818

SQLite.CodeFirst.Console/Entity/Stadion.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ public class Stadion
77
{
88
[Key]
99
[Column(Order = 1)]
10-
[Index("IX_Main", Order = 2)]
11-
public string Name { get; set; }
10+
[Index("IX_Stadion_Main", Order = 2)] // Test for combined, named index
11+
public string Name { get; set; }
1212

1313
[Key]
1414
[Column(Order = 2)]
15-
[Index("IX_Main", Order = 1)]
15+
[Index("IX_Stadion_Main", Order = 1)] // Test for combined, named index
1616
public string Street { get; set; }
1717

1818
[Key]

0 commit comments

Comments
 (0)