Entity Framework commands entered in the Package Manager Console, like Add-Migration and Update-Database can get fairly long and complex when when dealing with solutions that have a "non-standard" build.
With syntax and options like:
Add-Migration [-Name] <String> [-Force] [-ProjectName <String>] [-StartUpProjectName <String>]
[-ConfigurationTypeName <String>] [-ConnectionStringName <String>] [-IgnoreChanges]
[-AppDomainBaseDirectory <String>] [<CommonParameters>]
Add-Migration [-Name] <String> [-Force] [-ProjectName <String>] [-StartUpProjectName <String>]
[-ConfigurationTypeName <String>] -ConnectionString <String> -ConnectionProviderName <String>
[-IgnoreChanges] [-AppDomainBaseDirectory <String>] [<CommonParameters>]
Update-Database [-SourceMigration <String>] [-TargetMigration <String>] [-Script] [-Force]
[-ProjectName <String>] [-StartUpProjectName <String>] [-ConfigurationTypeName <String>]
[-ConnectionStringName <String>] [-AppDomainBaseDirectory <String>] [<CommonParameters>]
Update-Database [-SourceMigration <String>] [-TargetMigration <String>] [-Script] [-Force]
[-ProjectName <String>] [-StartUpProjectName <String>] [-ConfigurationTypeName <String>]
-ConnectionString <String> -ConnectionProviderName <String>
[-AppDomainBaseDirectory <String>] [<CommonParameters>]
Are there any good options to manage these commands within the project? I often find myself creating a .txt file with notes and saved command lines, and saving it in a "doc" folder at the solution level. I copy and paste commands from here as I need them, but it seems like there should be a better way to handle these commands.
Ideally, I'd like to be able to create a "batch file" (or something like it) for the Package Manager Console that can take simplified options and expand it to the full command. For example, I run Add-Migration-Ex MyNewMigration, and it gets expanded to the full Add-Migration command, with all my other standard options and switches for the current project applied.
Are there any easier ways to manage these types of complex commands that makes them easier to save and run on a per-project / solution level?