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

ability to generate SQL INSERT and class initializer statements #34

Closed
adamfoneil opened this issue Jan 15, 2021 · 0 comments
Closed

ability to generate SQL INSERT and class initializer statements #34

adamfoneil opened this issue Jan 15, 2021 · 0 comments

Comments

@adamfoneil
Copy link
Owner

adamfoneil commented Jan 15, 2021

Would be nice to be able to quickly generate INSERT and C# initializer statements for a table. Should be easy to identity required and optional properties. I'm picturing two command in context menu:

image

The C# class initializer output would look like this, but I don't care about correct indents:

new User() 
{
    Name = /* required */,
    EmailAddress = /* required */,
    AdminLevel = /* required */,
    Enabled = /* required */,
    DateCreated = /* required */,
    DataOwnerID = /* required */,
    /* LastLogin = optional */,
    /* EmployeeID = optional */,
    /* RequirePwdChange = optional */,
    /* FirstName = optional */,
    /* LastName = optional */,
    /* PasswordHashed = optional */,
    /* LastLoginKey = optional */,
    /* TimeZoneId = optional */
}

The SQL statement would include required columns only

adamfoneil added a commit that referenced this issue Jan 15, 2021
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

No branches or pull requests

1 participant