This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
PRIORITY - ALWAYS Lowest level stuff first
|
PRIORITY - ALWAYS Lowest level stuff first
|
||||||
=-=-=-=-
|
=-=-=-=-
|
||||||
|
|
||||||
todo: Log configuration into server log at startup? https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3523
|
|
||||||
log all config settings into server log on boot
|
|
||||||
license?
|
|
||||||
todo:aycontext clean up old block of weird definitions
|
todo:aycontext clean up old block of weird definitions
|
||||||
todo: apiokresponse returns readonly value every time, but I check it anyway at the client and biz object itself doesn't set it I don't think, so...should it be removed?
|
todo: apiokresponse returns readonly value every time, but I check it anyway at the client and biz object itself doesn't set it I don't think, so...should it be removed?
|
||||||
todo: Is there a log that records past jobs, how long can they be viewed?
|
todo: Is there a log that records past jobs, how long can they be viewed?
|
||||||
|
|||||||
@@ -129,27 +129,27 @@ namespace AyaNova.Models
|
|||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
//TODO: this entire block is almost certainly wrong or not required
|
//TODO: this entire block is almost certainly wrong or not required
|
||||||
|
|
||||||
//Indexes must be specified through fluent api unfortunately
|
// //Indexes must be specified through fluent api unfortunately
|
||||||
modelBuilder.Entity<FileAttachment>().HasIndex(p => p.StoredFileName);
|
// modelBuilder.Entity<FileAttachment>().HasIndex(p => p.StoredFileName);
|
||||||
|
|
||||||
//Relationships
|
// //Relationships
|
||||||
modelBuilder.Entity<Translation>()
|
// modelBuilder.Entity<Translation>()
|
||||||
.HasMany(c => c.TranslationItems)
|
// .HasMany(c => c.TranslationItems)
|
||||||
.WithOne(e => e.Translation)
|
// .WithOne(e => e.Translation)
|
||||||
.IsRequired();//default delete behaviour is cascade when set to isrequired
|
// .IsRequired();//default delete behaviour is cascade when set to isrequired
|
||||||
|
|
||||||
modelBuilder.Entity<User>()
|
// modelBuilder.Entity<User>()
|
||||||
.HasOne(p => p.UserOptions)
|
// .HasOne(p => p.UserOptions)
|
||||||
.WithOne(i => i.User)
|
// .WithOne(i => i.User)
|
||||||
.HasForeignKey<UserOptions>(b => b.UserId)
|
// .HasForeignKey<UserOptions>(b => b.UserId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);//Hopefully will delete the useroptions with the user?
|
// .OnDelete(DeleteBehavior.Cascade);//Hopefully will delete the useroptions with the user?
|
||||||
|
|
||||||
//User->Widget Not certain about this definition
|
// //User->Widget Not certain about this definition
|
||||||
modelBuilder.Entity<User>()
|
// modelBuilder.Entity<User>()
|
||||||
.HasOne(p => p.Widget)
|
// .HasOne(p => p.Widget)
|
||||||
.WithOne(i => i.User)
|
// .WithOne(i => i.User)
|
||||||
.HasForeignKey<Widget>(b => b.UserId)
|
// .HasForeignKey<Widget>(b => b.UserId)
|
||||||
.OnDelete(DeleteBehavior.NoAction);
|
// .OnDelete(DeleteBehavior.NoAction);
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user