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,903
  • 8
  • 35
  • 46
Abi Reddy
  • 79
  • 5

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
  • 29,830
  • 10
  • 79
  • 151