我有一个存储过程称为pat_selectPatientById
和真或假的使用ISNULL(@isEqual, 0) as IsProviderSameAsPCP
该存储过程返回。调用存储过程和检查返回值
我试图通过调用Application.WebService.ExecuteQuery("pat_selectPatientById")
调用使用C#方法,此存储过程。但我没有任何运气 - 有人能指引我走向正确的方向吗?
非常感谢球员
代码:
declare @isEqual bit =
(select
top 1 1 as IsEqual
from
Patient p
inner join
[Resource] r on p.ProviderId = r.ResourceId
where
PatientId = @PatientId
and p.PrimaryCareProviderId = r.RefPhysId)
是否有您所使用的框架法的ExecuteScalar? –
没有没有 – Robert
您可以使用自定义代码还是必须通过这个方法,你所提到的,即Application.WebService ..? –