共用方式為


IConventionStoredProcedureBuilder.CanHaveParameter(String, Boolean) 方法

定義

傳回值,指出對應至指定屬性的參數是否可以用於預存程式。

public bool CanHaveParameter (string propertyName, bool fromDataAnnotation = false);
abstract member CanHaveParameter : string * bool -> bool
Public Function CanHaveParameter (propertyName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

參數

propertyName
String

屬性名稱。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

true 如果 參數可用於預存程式,則為 。

適用於