From f3a0601257260b6f43d5c866819ecd01d6d16685 Mon Sep 17 00:00:00 2001 From: movingsam Date: Mon, 16 Feb 2026 22:40:07 -0800 Subject: [PATCH] fix: remove IdGenerator usage - let EF SnowFlakeValueGenerator handle ID generation --- .../Aggregates/PointsModel/PointsAccount.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fengling.Member.Domain/Aggregates/PointsModel/PointsAccount.cs b/src/Fengling.Member.Domain/Aggregates/PointsModel/PointsAccount.cs index 35a9b07..c8cdb7b 100644 --- a/src/Fengling.Member.Domain/Aggregates/PointsModel/PointsAccount.cs +++ b/src/Fengling.Member.Domain/Aggregates/PointsModel/PointsAccount.cs @@ -6,7 +6,7 @@ namespace Fengling.Member.Domain.Aggregates.PointsModel; public partial record PointsAccountId : IInt64StronglyTypedId { - public static PointsAccountId New() => new PointsAccountId(IdGenerator.Instance.GetLong()); + public static PointsAccountId New() => new PointsAccountId(0); public long Value => this; public static implicit operator long(PointsAccountId id) => id.Value; public static implicit operator PointsAccountId(long value) => new PointsAccountId(value);