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

Synchronizer class generator #88

Open
gdlcf88 opened this issue Jul 14, 2020 · 2 comments
Open

Synchronizer class generator #88

gdlcf88 opened this issue Jul 14, 2020 · 2 comments
Labels
discussion We need to talk about this feature This will be a new awesome feature

Comments

@gdlcf88
Copy link
Member

gdlcf88 commented Jul 14, 2020

Synchronizer Class Generator

It generates a local entity data synchronizer class on the same path with the target entity class.

Usage

Command

abphelper generate synchronizer [options] <LocalEntityName> <TargetEntityOrEtoFullName>

Options

--distributed-events

Handle the distributed events instead of local events.

--ignore-update

Do not synchronize the data when the target entity is updated.

--ignore-delete

Do not delete the local entity when the target entity is deleted.

Samples

abphelper generate synchronizer Product EasyAbp.EShop.Payments.Payment

abphelper generate synchronizer --distributed-events Product EasyAbp.EShop.Payments.Etos.PaymentEto

Generation Steps

  1. Try to create MyProjectDomainAutoMapperProfile.cs.
  2. Try to configure AbpAutoMapperOptions. (refer to the example)
  3. Add CreateMap<TTargetEntity, TEntity>(MemberList.Source); to the profile.
  4. Generate the synchronizer class. (refer to the example)
@gdlcf88
Copy link
Member Author

gdlcf88 commented Jul 15, 2020

@gdlcf88
Copy link
Member Author

gdlcf88 commented Jul 15, 2020

Should ignore mapping the ConcurrencyStamp property.

@wakuflair wakuflair added discussion We need to talk about this feature This will be a new awesome feature labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion We need to talk about this feature This will be a new awesome feature
Projects
None yet
Development

No branches or pull requests

2 participants