efcore: Migrations Design: Invalid 'using' statements for default namespace
Invalid using ;
added to generated migration file because this simple project has no default namespace.
Setup https://gist.github.com/natemcmaster/90e2388c0ee1d29f440a.
Using dnx 1.0.0-beta6-12114 , EF 7.0.0-beta6-13584
dnx . ef migration add Initial
produces 20150624223653_Initial.Designer.cs
which includes this at the top of the file:
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Relational.Migrations.Infrastructure;
using ;
The same using block appears in ModelSnapshot.cs
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Design: Put system namespaces first in generated code Don't generate empty namespace if context is not in namespce Resolves #10225 Resolves #2467 — committed to dotnet/efcore by smitpatel 7 years ago
- Design: Put system namespaces first in generated code Don't generate empty namespace if context is not in namespce Resolves #10225 Resolves #2467 — committed to dotnet/efcore by smitpatel 7 years ago
@BennyM I love the enthusiasm! Feel free to check out some of our other up-for-grabs issues if you’re still interested in submitting a PR. 😉