Skip to content

Comment generation #4

@ufcpp

Description

@ufcpp

Assume a SQL code as following:

CREATE TABLE [dbo].[Samples]
(
    [Id] INT NOT NULL, -- a comment for Id
    [Name] NVARCHAR(10) NOT NULL, -- a cooment for Name
    CONSTRAINT [PK_dbo.Samples] PRIMARY KEY CLUSTERED ([Id] ASC), 
)

I would like to generate a C# code as following:

public partial class Sample
{
    /// <summary>
    /// a comment for Id
    /// </summary>
    [Key]
    [Column(Order = 0)]
    public int Id { get; set; }

    /// <summary>
    /// a comment for Name
    /// </summary>
    public string Name { get; set; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions