public Expression GetSinglePrimaryKeyExpression(Expression obj) { if (this.PrimaryKeyProperties.Count != 1) { return null; } return Expression.Property(obj, this.PrimaryKeyProperties[0].PropertyInfo); }