Metodo MetadataProperty.Create
[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.]
Metodo factory per la costruzione dell'oggetto MetadataProperty.
Spazio dei nomi: System.Data.Entity.Core.Metadata.Edm
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public Shared Function Create ( _
name As String, _
typeUsage As TypeUsage, _
value As Object _
) As MetadataProperty
'Utilizzo
Dim name As String
Dim typeUsage As TypeUsage
Dim value As Object
Dim returnValue As MetadataProperty
returnValue = MetadataProperty.Create(name, typeUsage, _
value)
public static MetadataProperty Create(
string name,
TypeUsage typeUsage,
Object value
)
public:
static MetadataProperty^ Create(
String^ name,
TypeUsage^ typeUsage,
Object^ value
)
static member Create :
name:string *
typeUsage:TypeUsage *
value:Object -> MetadataProperty
public static function Create(
name : String,
typeUsage : TypeUsage,
value : Object
) : MetadataProperty
Parametri
- name
Tipo: System.String
Nome della proprietà dei metadati.
- typeUsage
Tipo: System.Data.Entity.Core.Metadata.Edm.TypeUsage
Utilizzo del tipo della proprietà dei metadati.
- value
Tipo: System.Object
Valore della proprietà dei metadati.
Valore restituito
Tipo: System.Data.Entity.Core.Metadata.Edm.MetadataProperty
Oggetto MetadataProperty.
Eccezioni
Eccezione | Condizione |
---|---|
NullReferenceException | Generata se typeUsage è null. |
Note
L'oggetto MetadataProperty appena creato sarà di sola lettura.