Skip to content

Duplicate class and file names for entities and mapping #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

adolfodiaz
Copy link

The generator is leaving duplicate class and file names for entities and mapping.

Environment: SQL Server

Step to reproduce:
Create table script:

USE [YOUR_DATABASE]
GO

/****** Object:  Table [dbo].[header]    Script Date: 2020/06/09 11:01:10 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[header](
	[id_header] [int] NOT NULL,
 CONSTRAINT [PK_header] PRIMARY KEY CLUSTERED 
(
	[id_header] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE TABLE [dbo].[details](
	[id_detail] [INT] NOT NULL,
	[id_header] [INT] NULL,
 CONSTRAINT [PK_details] PRIMARY KEY CLUSTERED 
(
	[id_detail] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[details]  WITH CHECK ADD  CONSTRAINT [FK_details_header] FOREIGN KEY([id_header])
REFERENCES [dbo].[header] ([id_header])
GO

ALTER TABLE [dbo].[details] CHECK CONSTRAINT [FK_details_header]
GO

Execution result before fix
image

Execution result after fix
image

For PR purposes i attach generation.yml in txt format

generation.yml.txt

dattaproffs and others added 8 commits January 28, 2019 22:25
Enum mappings in entity generation. Dicionary of schema.table.property to namespace.enum that will get replaced in generation.
Merge branch 'enum-mappings' of https://github.com/dattaproffs/EntityFrameworkCore.Generator

# Conflicts:
#	test/EntityFrameworkCore.Generator.Core.Tests/ModelGeneratorTests.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants