public PropertyInfo GetEntityPrimaryKey(IAuditableContext context) { var property = _pkSelector == null ? context.GetPrimaryKeyProperty(EntityType) : _pkSelector.ToPropertyInfo(); return(property); }
internal static LambdaExpression GetEntityPkProperty <TEntity>(this IAuditableContext context) { var pk = context.GetPrimaryKeyProperty(typeof(TEntity)); return(GetPropertySelector <TEntity>(context, pk.Name)); }