23 lines
595 B
C#
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);
|
|
}
|
|
}
|