Edit: This list is now maintained in the rust-anthology repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ---------------------------------------------------------------------------------- | |
| # r u s t f m t - C O N F I G | |
| # ================================================================================== | |
| # | |
| # Version: 0.7.1 | |
| # Author : Robbepop <[email protected]> | |
| # | |
| # A predefined .rustfmt.toml file with all configuration options and their | |
| # associated description, possible values and default values for use in other | |
| # projects. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected override void OnModelCreating(ModelBuilder modelBuilder) | |
| { | |
| foreach (var relationship in modelBuilder.Model.GetEntityTypes().SelectMany(e => e.GetForeignKeys())) | |
| relationship.DeleteBehavior = DeleteBehavior.Restrict; | |
| } |