EvAlex / ef-db-diagrams

Visualize model created with EntityFramework Core
https://db-diagrams.firebaseapp.com/
MIT License
62 stars 25 forks source link

Failed to load database model - NullReferenceException #47

Open VuiDJi opened 6 years ago

VuiDJi commented 6 years ago

Hi! Can not use ef-db-diagrams, an exception throwed every time. Could you help, please.

Thanks!

C-BERBER commented 6 years ago

Failed to load database model... same here, would love to see this thing work, it looks awesome.

greygreg87 commented 5 years ago

Hi!

I have same issue. I'm using .net core 2.1, maybe this is source of problem, or is it related with exceptions that are throw in EfDiagramsMiddleware.cs?

if (loggerFactory == null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

I'm using code first method, and this is my forehead of DatabaseContext:

public class DatabaseContext : DbContext
    {
        public DatabaseContext(DbContextOptions<DatabaseContext> options) : base(options) { }

        public DbSet<Client> Clients { get; set; }
grpiccoli commented 5 years ago

I'm experiencing the same problem with asp-net core 2.2