changed all lambda experssion variables to z from various where appropriate
This commit is contained in:
@@ -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);
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user