C# Class ExoModel.EntityFramework.EntityFrameworkModelTypeProvider

Inheritance: ReflectionModelTypeProvider
Mostra file Open project: vc3/ExoModel

Private Properties

Property Type Description
GetBuddyClassAttributes System.Attribute[]
GetEntityTypes IEnumerable
GetObjectContext IEntityContext
GetStorage Storage

Public Methods

Method Description
EntityFrameworkModelTypeProvider ( Func createContext ) : System
EntityFrameworkModelTypeProvider ( string @namespace, Func createContext ) : System

Protected Methods

Method 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

Method 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 method

protected CreateModelType ( string @namespace, Type type, string format ) : ReflectionModelType
@namespace string
type System.Type
format string
return ReflectionModelType

CreateReferenceProperty() protected method

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
return ModelReferenceProperty

CreateValueProperty() protected method

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
return ModelValueProperty

EntityFrameworkModelTypeProvider() public method

public EntityFrameworkModelTypeProvider ( Func createContext ) : System
createContext Func
return System

EntityFrameworkModelTypeProvider() public method

public EntityFrameworkModelTypeProvider ( string @namespace, Func createContext ) : System
@namespace string
createContext Func
return System

GetUnderlyingType() protected method

protected GetUnderlyingType ( object instance ) : Type
instance object
return System.Type