You have to make the query in your string builder and you have to replace it runtime like below example
StringBuilder sb = new StringBuilder();
string runtimePropertyName = string.Empty;
string runtimePropertyValue = string.Empty;
sb.Append("from a in db.abc where a.#PropertyName#==#PropertyValue# select a.ToList();");
sb.Replace("#PropertyName#", runtimePropertyName);
sb.Replace("#PropertyValue#", runtimePropertyValue);
var list = sb.ToString();
If this helped you then please Vote and accept as Answer. :rose: