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

breakchange: 将 AddDomainEvent 方法的访问修饰符从 public 修改为 protected #121

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

Zzzzjle
Copy link
Member

@Zzzzjle Zzzzjle commented Dec 11, 2024

  1. Entity.csNetCorePal.Extensions.Domain 命名空间)

    • _domainEvents 的初始化方式改为 集合表达式
    • AddDomainEvent 方法的访问修饰符从 public 修改为 protected,增强封装性,限制外部调用。
    • Entity<TKey> 类中, GetKeys 方法修改为使用 集合表达式
  2. PagedData.csNetCorePal.Extensions.Domain 命名空间)

    • PagedData<T> 类中新增无参构造函数。

   - 在 `Entity` 类中,修复 `ToString` 方法,简化字符串拼接。
   - 将 `_domainEvents` 的初始化方式改为 `集合表达式`。
   - 将 `AddDomainEvent` 方法的访问修饰符从 `public` 修改为 `protected`,增强封装性,限制外部调用。
   - 在 `Entity<TKey>` 类中, `GetKeys` 方法修改为使用 `集合表达式`

2. **`PagedData.cs`(`NetCorePal.Extensions.Domain` 命名空间)**
   - 在 `PagedData<T>` 类中新增无参构造函数。
Copy link
Member

@witskeeper witskeeper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看起来没问题

@witskeeper witskeeper changed the title Dev breakchange: 将 AddDomainEvent 方法的访问修饰符从 public 修改为 protected Dec 11, 2024
@witskeeper witskeeper merged commit 70f03da into netcorepal:main Dec 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants