Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

"Object reference not set..." error on drag and drop of existing code. #114

Closed
michaelpear opened this issue Oct 25, 2019 · 1 comment
Closed
Labels
bug Confirmed bug released Issue is resolved in a current release
Milestone

Comments

@michaelpear
Copy link

I'm trying to generate a diagram/model from files output from the Scaffold-DB, but getting the dreaded "Object reference not set to an instance of an object" when I drag any one of the files to the diagram surface. I'm using Visual Studio 2019 V16.3.6 with V1.3.0.6

I am able to create entities from the toolbox, but am getting the error on a file as simple as:

`
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.CompilerServices;

namespace TrainingManagerSchema.Reverse
{
public partial class EntityMinimal
{
[Key]
[Required]
public int Id { get; private set; }
public string Test { get; set; }
}
}`

I see issue #112 reports a drag and drop error, but is reported differently and there is no indication of the version of VS or the extension.

@msawczyn msawczyn added investigating Looking into this pending release Issue is resolved in the current codebase, will be published with the next release and removed investigating Looking into this labels Oct 26, 2019
@msawczyn msawczyn added this to the 1.3.0.8 milestone Oct 26, 2019
@msawczyn
Copy link
Owner

Fix available for review in v1.3.0.8-pre

@msawczyn msawczyn added bug Confirmed bug released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants