Renamed settings name to code
This commit is contained in:
5 files changed
+245
-9
No files matched your search
@@ -23,7 +23,7 @@ public sealed class DataContext : DbContext
|
||||
#region Settings
|
||||
|
||||
modelBuilder.Entity<Setting>().HasIndex(n => n.Id);
|
||||
modelBuilder.Entity<Setting>().HasIndex(n => n.Name).IsUnique();
|
||||
modelBuilder.Entity<Setting>().HasIndex(n => n.Code).IsUnique();
|
||||
modelBuilder.Entity<Setting>().HasIndex(n => n.BoolValue);
|
||||
modelBuilder.Entity<Setting>().HasIndex(n => n.GuidValue);
|
||||
modelBuilder.Entity<Setting>().HasIndex(n => n.IntegerValue);
|
||||
|
||||
@@ -7,7 +7,7 @@ public sealed class Setting
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Code { get; set; } = string.Empty;
|
||||
|
||||
public string TextValue { get; set; } = string.Empty;
|
||||
|
||||
|
||||
Reference in new issue
Block a user