You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the DbContext class is not in a namespace adding a migration will generate an empty using statement (which is not valid in C#) in both the snapshot and the designer class:
using System;using Microsoft.EntityFrameworkCore;using Microsoft.EntityFrameworkCore.Infrastructure;using Microsoft.EntityFrameworkCore.Metadata;using Microsoft.EntityFrameworkCore.Migrations;using;
...
This is not a very important scenario because creating classes without a namespace isn't common these days (it used to be more common with ASP.NET Web Sites) but on the other hand I think it should be an easy fix.
(I think I have seen this mentioned by a customer before but I couldn't find an existing issue)
The text was updated successfully, but these errors were encountered:
If the
DbContext
class is not in a namespace adding a migration will generate an empty using statement (which is not valid in C#) in both the snapshot and the designer class:This is not a very important scenario because creating classes without a namespace isn't common these days (it used to be more common with ASP.NET Web Sites) but on the other hand I think it should be an easy fix.
(I think I have seen this mentioned by a customer before but I couldn't find an existing issue)
The text was updated successfully, but these errors were encountered: