/// <summary>
/// 删除
/// </summary>
/// <param name=”ids”></param>
public int Delete(string ids)
{
try
{
string[] id = ids.Split(‘,’);
string str = “”;
for (int i = 0; i < id.Length; i++)
{
str += “‘” + id[i] + “‘,”;
}
str = str.TrimEnd(‘,’);
string sql = “delete from [dbo].[DM_DeviceInfo] where Id in (” + str + “)”;
return DbHelperSQL.ExecuteSql(sql);
}
catch (Exception ex)
{
return -1;
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/280736.html