C# Class System.Data.Entity.Metadata.EntityMetadataBase

Entity metadata base class.
Inheritance: IEntityMetadata
Show file Open project: Kation/ComBoost

Public Methods

Method Description
GetProperty ( string name ) : IPropertyMetadata

Get the property of entity.

Protected Methods

Method Description
EntityMetadataBase ( Type entityType ) : System

Initialize entity metadata.

SetAuthentication ( EntityAuthenticationAttribute authentication ) : void

Set the metadata of authentication.

SetDisplay ( DisplayNameAttribute display ) : void

Set the metadata of display.

SetDisplayColumn ( System.ComponentModel.DataAnnotations.DisplayColumnAttribute display ) : void

Set the metadata of display property.

SetMetadata ( ) : void

Set the metadata automatic.

SetParent ( System.ComponentModel.DataAnnotations.ParentAttribute parent ) : void

Set the metadata of parent.

SetProperties ( IEnumerable propertyMetadatas ) : void

Set the metadata of properties.

Method Details

EntityMetadataBase() protected method

Initialize entity metadata.
protected EntityMetadataBase ( Type entityType ) : System
entityType System.Type
return System

GetProperty() public method

Get the property of entity.
public GetProperty ( string name ) : IPropertyMetadata
name string Name of property.
return IPropertyMetadata

SetAuthentication() protected method

Set the metadata of authentication.
protected SetAuthentication ( EntityAuthenticationAttribute authentication ) : void
authentication System.ComponentModel.DataAnnotations.EntityAuthenticationAttribute
return void

SetDisplay() protected method

Set the metadata of display.
protected SetDisplay ( DisplayNameAttribute display ) : void
display DisplayNameAttribute Display name attribute.
return void

SetDisplayColumn() protected method

Set the metadata of display property.
protected SetDisplayColumn ( System.ComponentModel.DataAnnotations.DisplayColumnAttribute display ) : void
display System.ComponentModel.DataAnnotations.DisplayColumnAttribute Display attribute.
return void

SetMetadata() protected method

Set the metadata automatic.
protected SetMetadata ( ) : void
return void

SetParent() protected method

Set the metadata of parent.
protected SetParent ( System.ComponentModel.DataAnnotations.ParentAttribute parent ) : void
parent System.ComponentModel.DataAnnotations.ParentAttribute Parent attribute.
return void

SetProperties() protected method

Set the metadata of properties.
protected SetProperties ( IEnumerable propertyMetadatas ) : void
propertyMetadatas IEnumerable Property metadatas.
return void