0
Voici mon code:Comment faire un ou sélectionner lors de l'utilisation de subsonic?
TransactionCollection transactions = new TransactionCollection();
transactions.Where("next_action", "RESEND");
transactions.Where("job_id", CurrentJob.Id);
transactions.Load();
Je veux vraiment dire next_action est RENVOYER ou next_action est TARGET. Merci.
Fondamentalement, je veux une sélection statemnt comme ceci:
select * from transactions where job_id = 1 and (next_action = 'RESEND' OR next_action = 'TARGET');
ou
select * from transactions where job_id = 1 and next_action IN ('RESEND', 'TARGET');
Consultez http://subsonicproject.com/querying/select-queries/ pour plus d'exemples –