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

Feature: add or remove properties in an existing entity #115

Open
gdlcf88 opened this issue Sep 10, 2020 · 0 comments
Open

Feature: add or remove properties in an existing entity #115

gdlcf88 opened this issue Sep 10, 2020 · 0 comments
Labels
feature This will be a new awesome feature

Comments

@gdlcf88
Copy link
Member

gdlcf88 commented Sep 10, 2020

For example, there is a "Todo" entity with the property "Title":

public class Todo : Entity<Guid>
{
    public virtual string Title { get; protected set; }

    public virtual string Content { get; protected set; }
}

Now I want to remove the "Title" and add a new Guid? property named "UserId", I can use the following commands:

abphelper xxx remove Title
abphelper xxx add Guid? UserId

So the entity file, localization files, DTO files, ViewModels files, Index.cshtml, index.js will be changed, and a new EF migration file will also be generated.

@wakuflair wakuflair added the feature This will be a new awesome feature label Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This will be a new awesome feature
Projects
None yet
Development

No branches or pull requests

2 participants