fix: remove IdGenerator usage - let EF SnowFlakeValueGenerator handle ID generation

This commit is contained in:
movingsam 2026-02-16 22:40:07 -08:00
parent eb1d4ac4f7
commit f3a0601257

View File

@ -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);