This is the SQL that I want to accomplish:
WHERE domain_nm + '\' + group_nm in ('DOMAINNAME\USERNAME1','DOMAINNAME2\USERNAME2')
I can't for the life of me find an appropriate Expression for this. And I don't think I can use two expressions as the domain name and the group name need to be concatenated.
Thanks!
Can you not use two Expressions?
criteria
.Add(Expression.In("DomainName", new string[] { "DOMAINNAME", "DOMAINNAME2" }))
.Add(Expression.In("GroupName", new string[] { "USERNAME1", "USERNAME2" })
The other option is to use Expression.Sql.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With