internal static Exception CannotConvertToEntityRef(object p0) => (Exception) new InvalidOperationException(Strings.CannotConvertToEntityRef(p0));