C# Class ExoModel.EntityFramework.EntityFrameworkModelTypeProvider

Inheritance: ReflectionModelTypeProvider
Afficher le fichier Open project: vc3/ExoModel

Private Properties

Свойство Type Description
GetBuddyClassAttributes System.Attribute[]
GetEntityTypes IEnumerable
GetObjectContext IEntityContext
GetStorage Storage

Méthodes publiques

Méthode Description
EntityFrameworkModelTypeProvider ( Func createContext ) : System
EntityFrameworkModelTypeProvider ( string @namespace, Func createContext ) : System

Méthodes protégées

Méthode Description
CreateModelType ( string @namespace, Type type, string format ) : ReflectionModelType
CreateReferenceProperty ( ModelType declaringType, System property, string name, string label, string helptext, string format, bool isStatic, ModelType propertyType, bool isList, bool isReadOnly, bool isPersisted, Attribute attributes ) : ModelReferenceProperty

Overridden to allow the addition of buddy-class attributes to the list of attributes associated with the ModelType

CreateValueProperty ( ModelType declaringType, System property, string name, string label, string helptext, string format, bool isStatic, Type propertyType, TypeConverter converter, bool isList, bool isReadOnly, bool isPersisted, Attribute attributes ) : ModelValueProperty

Overridden to allow the addition of buddy-class attributes to the list of attributes associated with the ModelType

GetUnderlyingType ( object instance ) : Type

Private Methods

Méthode Description
GetBuddyClassAttributes ( ModelType declaringType, System property ) : System.Attribute[]

Fetches any attributes on matching properties in an entity's "buddy class"

GetEntityTypes ( object context ) : IEnumerable
GetObjectContext ( ) : IEntityContext
GetStorage ( ) : Storage

Gets thread static or HttpContext storage for the ModelContext.

Method Details

CreateModelType() protected méthode

protected CreateModelType ( string @namespace, Type type, string format ) : ReflectionModelType
@namespace string
type System.Type
format string
Résultat ReflectionModelType

CreateReferenceProperty() protected méthode

Overridden to allow the addition of buddy-class attributes to the list of attributes associated with the ModelType
protected CreateReferenceProperty ( ModelType declaringType, System property, string name, string label, string helptext, string format, bool isStatic, ModelType propertyType, bool isList, bool isReadOnly, bool isPersisted, Attribute attributes ) : ModelReferenceProperty
declaringType ModelType
property System
name string
label string
helptext string
format string
isStatic bool
propertyType ModelType
isList bool
isReadOnly bool
isPersisted bool
attributes System.Attribute
Résultat ModelReferenceProperty

CreateValueProperty() protected méthode

Overridden to allow the addition of buddy-class attributes to the list of attributes associated with the ModelType
protected CreateValueProperty ( ModelType declaringType, System property, string name, string label, string helptext, string format, bool isStatic, Type propertyType, TypeConverter converter, bool isList, bool isReadOnly, bool isPersisted, Attribute attributes ) : ModelValueProperty
declaringType ModelType
property System
name string
label string
helptext string
format string
isStatic bool
propertyType System.Type
converter System.ComponentModel.TypeConverter
isList bool
isReadOnly bool
isPersisted bool
attributes System.Attribute
Résultat ModelValueProperty

EntityFrameworkModelTypeProvider() public méthode

public EntityFrameworkModelTypeProvider ( Func createContext ) : System
createContext Func
Résultat System

EntityFrameworkModelTypeProvider() public méthode

public EntityFrameworkModelTypeProvider ( string @namespace, Func createContext ) : System
@namespace string
createContext Func
Résultat System

GetUnderlyingType() protected méthode

protected GetUnderlyingType ( object instance ) : Type
instance object
Résultat System.Type