Is it possible to send a collection of ID's as a ADO.NET SQL parameter?

前端 未结 6 1632
走了就别回头了
走了就别回头了 2020-11-29 09:16

Eg. can I write something like this code:

public void InactiveCustomers(IEnumerable customerIDs)
{
    //...
    myAdoCommand.CommandText =
              


        
6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 10:07

    You can with SQL 2008. It hasn't been out very long, but it is available.

提交回复
热议问题