track/src/TrackCenter.Repository/TrackCenterDbContext.cs
2025-07-12 17:03:21 +08:00

23 lines
595 B
C#

using System.Reflection;
using Fake.Domain.Entities;
using Fake.SqlSugarCore;
namespace TrackCenter.Repository;
public class TrackCenterDbContext : SugarDbContext<TrackCenterDbContext>
{
public TrackCenterDbContext(SugarDbConnOptions<TrackCenterDbContext> options) : base(options)
{
}
protected override void ConfigureEntityService(PropertyInfo property, EntityColumnInfo column)
{
if (property.Name == nameof(IAggregateRoot.ConcurrencyStamp))
{
column.IsIgnore = true;
}
base.ConfigureEntityService(property, column);
}
}