Skip to content
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

[REVENG] Unblock scaffolding of Azure SQL DW #15487

Closed
ErikEJ opened this issue Apr 24, 2019 · 1 comment · Fixed by #15508
Closed

[REVENG] Unblock scaffolding of Azure SQL DW #15487

ErikEJ opened this issue Apr 24, 2019 · 1 comment · Fixed by #15508
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Milestone

Comments

@ErikEJ
Copy link
Contributor

ErikEJ commented Apr 24, 2019

See discussion here: #15438 (comment)
//cc @bricelam

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Apr 24, 2019

SELECT
    SCHEMA_NAME([t].[schema_id]) AS [table_schema],
    [t].[name] AS [table_name],
    [c].[name] AS [column_name],
    [c].[column_id] AS [ordinal],
    SCHEMA_NAME([tp].[schema_id]) AS [type_schema],
    [tp].[name] AS [type_name],
    CAST([c].[max_length] AS int) AS [max_length],
    CAST([c].[precision] AS int) AS [precision],
    CAST([c].[scale] AS int) AS [scale],
    [c].[is_nullable],
    [c].[is_identity],
    OBJECT_DEFINITION([c].[default_object_id]) AS [default_sql],
    [df].[definition] AS [default_sql2],
    [cc].[definition] AS [computed_sql]
FROM [sys].[columns] AS [c]
JOIN [sys].[tables] AS [t] ON [c].[object_id] = [t].[object_id]
JOIN [sys].[types] AS [tp] ON [c].[user_type_id] = [tp].[user_type_id]
LEFT JOIN [sys].[computed_columns] AS [cc] ON [c].[object_id] = [cc].[object_id] AND [c].[column_id] = [cc].[column_id]
LEFT JOIN [sys].[default_constraints] AS [df] ON [c].[object_id] = [df].[parent_object_id] AND [df].[parent_column_id] = [c].[column_id]

ErikEJ added a commit to ErikEJ/EntityFramework that referenced this issue Apr 27, 2019
ErikEJ added a commit to ErikEJ/EntityFramework that referenced this issue Apr 29, 2019
@divega divega added this to the 3.0.0 milestone Apr 29, 2019
@smitpatel smitpatel added closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. labels Apr 29, 2019
@bricelam bricelam added the good first issue This issue should be relatively straightforward to fix. label May 31, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, 3.0.0-preview6 Jun 5, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0-preview6, 3.0.0 Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants