Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Duplicate class and file names for entities and mapping - #134

#134
Open
adolfodiaz wants to merge 8 commits into
loresoft:masterloresoft/EntityFrameworkCore.Generator:masterfrom
adolfodiaz:masteradolfodiaz/EntityFrameworkCore.Generator:masterCopy head branch name to clipboard
Open

Duplicate class and file names for entities and mapping#134
adolfodiaz wants to merge 8 commits into
loresoft:masterloresoft/EntityFrameworkCore.Generator:masterfrom
adolfodiaz:masteradolfodiaz/EntityFrameworkCore.Generator:masterCopy head branch name to clipboard

Conversation

@adolfodiaz

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.