에는 System.Data.SqlClient.SqlCommand 메소드 System.Data.IDbCommand 및 비동기 실행?
BeginExecuteNonQuery
BeginExecuteReader
BeginExecuteXmlReader
비동기 실행
EndExecuteNonQuery
EndExecuteReader
EndExecuteXmlReader
있다.
System.Data.IDbCommand 은 동기 동작만을위한
ExecuteNonQuery
ExecuteReader
ExecuteXmlReader
있다.
비동기 작업을위한 인터페이스가 있습니까?
또한 BeginExecuteScalar가없는 이유는 무엇입니까?
'IDbCommand.ExecuteScalarAsync()'가 보이지 않습니다. 어떤 [documentation] (https://msdn.microsoft.com/en-us/library/system.data.idbcommand (v = vs.110) .aspx)를보고 있습니까? – binki
오, 당신은 ['SqlCommand.ExecuteScalarAsync()'] (https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalarasync%28v=vs.110%29. aspx). 내가 참조. – binki
@binki 또는 ['DbCommand.ExecuteScalarAsync()'] (https://msdn.microsoft.com/en-us/library/hh223677(v=vs.110) .aspx) 인터페이스에 있지만 일부 다형성을 지원합니다. – phoog