fix: remove IdGenerator usage - let EF SnowFlakeValueGenerator handle ID generation
This commit is contained in:
parent
eb1d4ac4f7
commit
f3a0601257
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user