MetadataProperty.Create Method (String, TypeUsage, Object)
The factory method for constructing the MetadataProperty object.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- name
-
Type:
System.String
The name of the metadata property.
- typeUsage
-
Type:
System.Data.Entity.Core.Metadata.Edm.TypeUsage
The type usage of the metadata property.
- value
-
Type:
System.Object
The value of the metadata property.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.MetadataPropertyThe MetadataProperty object.
Exception | Condition |
---|---|
NullReferenceException | Thrown typeUsage is null. |
The newly created MetadataProperty will be read only.