|
@@ -27,7 +27,7 @@ namespace Reconstruction
|
|
|
if (!optionsBuilder.IsConfigured)
|
|
|
{
|
|
|
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
|
|
|
- optionsBuilder.UseSqlServer("Data source=(localdb)\\MSSQLLocalDB;Database=Reconstruction;Integrated Security=True;");
|
|
|
+ optionsBuilder.UseSqlServer("Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=Reconstruction1;Integrated Security=True;");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -37,8 +37,6 @@ namespace Reconstruction
|
|
|
{
|
|
|
entity.ToTable("Status");
|
|
|
|
|
|
- entity.Property(e => e.Id).ValueGeneratedNever();
|
|
|
-
|
|
|
entity.Property(e => e.Title).HasMaxLength(50);
|
|
|
});
|
|
|
|
|
@@ -46,7 +44,11 @@ namespace Reconstruction
|
|
|
{
|
|
|
entity.ToTable("Task");
|
|
|
|
|
|
- entity.Property(e => e.Id).ValueGeneratedNever();
|
|
|
+ entity.HasIndex(e => e.AccUserId, "IX_Task_AccUserID");
|
|
|
+
|
|
|
+ entity.HasIndex(e => e.CreatorUserId, "IX_Task_CreatorUserID");
|
|
|
+
|
|
|
+ entity.HasIndex(e => e.StatusId, "IX_Task_StatusID");
|
|
|
|
|
|
entity.Property(e => e.AccUserId).HasColumnName("AccUserID");
|
|
|
|
|
@@ -80,8 +82,6 @@ namespace Reconstruction
|
|
|
{
|
|
|
entity.ToTable("User");
|
|
|
|
|
|
- entity.Property(e => e.Id).ValueGeneratedNever();
|
|
|
-
|
|
|
entity.Property(e => e.Firstname).HasMaxLength(50);
|
|
|
|
|
|
entity.Property(e => e.Lastname).HasMaxLength(50);
|