question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reverse Engineering: space in property in SP result class

See original GitHub issue

Classes are generated with spaces in properties when stored procedure returns a dataset with columns containing space.

Steps to reproduce

Source SP

ALTER   PROCEDURE [CALCULATIONS].[GET_DATASET] 
AS SET
NOCOUNT ON
BEGIN
	SELECT
	id_results_log  "ID Results Log",
	sector "Sector"
FROM
	results.SOME_TABLE p
END
GO

Generated code


public partial class GET_DATASETResult
{
    public int ID Results Log { get; set; }
}

Further technical details

EF Core Power Tools version: 2.5.270

Database engine: MS SQL Server

Visual Studio version: Visual Studio 2019

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Nov 3, 2020

Fixed in latest daily build, let me know if that solves your issue, and thanks for reporting this.

0reactions
tiomnycommented, Nov 5, 2020

That might be needed in some case - but not in mine 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reverse Engineering · ErikEJ/EFCorePowerTools Wiki
The tool can map SQL Server stored procedures, scalar and table valued functions, by selecting them from the list of objects to scaffold....
Read more >
Generating and accessing stored procedures using Entity ...
I have managed to generate the context and class files based on an existing database. I need to access stored procedures using my...
Read more >
Customizing 'Reverse Engineer Code First' in the EF Power ...
For example the column name may have a space, the reverse engineer process will generate a property that uses an underscore instead of...
Read more >
Reverse Engineer SQL Server Databases with Visual Studio
In short, this feature uses reverse engineering to create T-SQL files for each object in the database. Visual Studio will work with both...
Read more >
FastQRE: Fast Query Reverse Engineering
We study the problem of Query Reverse Engineering (QRE), where given a database and an output table, the task is to find a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found