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

1 to many unidirectionnal association #263

Closed
@pas059

Description

@pas059

Hello,

I notice errors in code generation with the '1 to many unidirectional association's. For instance, gieven an entity Organization and an entity Product, and an association 1 to many from Organization to Product, the generated constructor for Product is:

      public Product(global::EfDesigner1.Organization _organization0)
      {
         if (_organization0 == null) throw new ArgumentNullException(nameof(_organization0));
         this._organization0 = _organization0;
         _organization0.Products.Add(this);

         Init();
      }

The line this._organization0 = _organization0; is generated, but not a class member this._organization0. With EFDesigner 2.x this line is not generated. I think that this line should not be generated, or eventually that the corresponding data member be generated.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugreleasedIssue is resolved in a current release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions