0

I'm working with EntityFrameWork When I try to Run Command Add-Migration, I'm getting the following error

Add-Migration migration space
+ CategoryInfo          : InvalidArgument: (:) [Add-Migration], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Add-Migration

I find that this error occurred because there is a 'space' in the migration name. I also cannot create migration With special-Chars. Can some explain to me what are rules to be followed to add a new migration

TGnat
  • 3,831
  • 8
  • 33
  • 45
Abi Reddy
  • 29
  • 4

1 Answers1

3

Migrations generate classes, so the migration name needs to be a valid C# class name.

This thread covers the naming rules for classes.

Richard Deeming
  • 28,664
  • 7
  • 72
  • 132