changed all lambda experssion variables to z from various where appropriate

This commit is contained in:
2020-05-18 19:42:42 +00:00
parent 3a359f1052
commit fd8c489914
65 changed files with 431 additions and 557 deletions

View File

@@ -130,25 +130,25 @@ namespace AyaNova.Models
//TODO: this entire block is almost certainly wrong or not required
// //Indexes must be specified through fluent api unfortunately
// modelBuilder.Entity<FileAttachment>().HasIndex(p => p.StoredFileName);
// modelBuilder.Entity<FileAttachment>().HasIndex(z => z.StoredFileName);
// //Relationships
// modelBuilder.Entity<Translation>()
// .HasMany(c => c.TranslationItems)
// .WithOne(e => e.Translation)
// .HasMany(z => z.TranslationItems)
// .WithOne(z => z.Translation)
// .IsRequired();//default delete behaviour is cascade when set to isrequired
// modelBuilder.Entity<User>()
// .HasOne(p => p.UserOptions)
// .WithOne(i => i.User)
// .HasForeignKey<UserOptions>(b => b.UserId)
// .HasOne(z => z.UserOptions)
// .WithOne(z => z.User)
// .HasForeignKey<UserOptions>(z => z.UserId)
// .OnDelete(DeleteBehavior.Cascade);//Hopefully will delete the useroptions with the user?
// //User->Widget Not certain about this definition
// modelBuilder.Entity<User>()
// .HasOne(p => p.Widget)
// .WithOne(i => i.User)
// .HasForeignKey<Widget>(b => b.UserId)
// .HasOne(z => z.Widget)
// .WithOne(z => z.User)
// .HasForeignKey<Widget>(z => z.UserId)
// .OnDelete(DeleteBehavior.NoAction);
//////////////////////////////////////////////////////////////