如何将用逗号分隔的整数数组ExecuteStoreCommand
作为参数传递给实体中的一个我无法执行此操作:
this.ObjectContext.ExecuteStoreCommand("INSERT INTO SurveyPatientListMrns
(UserData, MrnId) SELECT DISTINCT '{0}' , MrnId
FROM PatientVisits WHERE (FacilityId = {1})
AND (UnitId IN ({2}))", userData, facilityId, (string.Join(",", unitIds)));
这(string.Join(",", unitIds))
是一个字符串,由于逗号,我无法将其转换为整数。那我该如何传递参数呢?
仅供参考,unitIds 是一个整数数组