Condividi tramite


Metodo StructuralObject.SetValidValue (DbGeometry, Boolean)

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Verifica che la proprietà non sia Null e genera un'eccezione se lo è.

Spazio dei nomi:  System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Protected Friend Shared Function SetValidValue ( _
    value As DbGeometry, _
    isNullable As Boolean _
) As DbGeometry
'Utilizzo
Dim value As DbGeometry 
Dim isNullable As Boolean 
Dim returnValue As DbGeometry 

returnValue = StructuralObject.SetValidValue(value, _
    isNullable)
protected internal static DbGeometry SetValidValue(
    DbGeometry value,
    bool isNullable
)
protected public:
static DbGeometry^ SetValidValue(
    DbGeometry^ value, 
    bool isNullable
)
static member SetValidValue : 
        value:DbGeometry * 
        isNullable:bool -> DbGeometry
static function SetValidValue(
    value : DbGeometry, 
    isNullable : boolean
) : DbGeometry

Parametri

  • isNullable
    Tipo: System.Boolean
    Flag che indica se questa proprietà può essere Null.

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeometry
Valore DbGeometry che viene impostato.

Eccezioni

Eccezione Condizione
ConstraintException

Il valore è Null per una proprietà che non ammette i valori Null.

Vedere anche

Riferimento

StructuralObject Classe

Overload SetValidValue

Spazio dei nomi System.Data.Entity.Core.Objects.DataClasses