C# Класс ExoModel.EntityFramework.EntityFrameworkModelTypeProvider

Наследование: ReflectionModelTypeProvider
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetBuddyClassAttributes System.Attribute[]
GetEntityTypes IEnumerable
GetObjectContext IEntityContext
GetStorage Storage

Открытые методы

Метод Описание
EntityFrameworkModelTypeProvider ( Func createContext ) : System
EntityFrameworkModelTypeProvider ( string @namespace, Func createContext ) : System

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

CreateModelType() защищенный Метод

protected CreateModelType ( string @namespace, Type type, string format ) : ReflectionModelType
@namespace string
type System.Type
format string
Результат ReflectionModelType

CreateReferenceProperty() защищенный Метод

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
Результат ModelReferenceProperty

CreateValueProperty() защищенный Метод

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
Результат ModelValueProperty

EntityFrameworkModelTypeProvider() публичный Метод

public EntityFrameworkModelTypeProvider ( Func createContext ) : System
createContext Func
Результат System

EntityFrameworkModelTypeProvider() публичный Метод

public EntityFrameworkModelTypeProvider ( string @namespace, Func createContext ) : System
@namespace string
createContext Func
Результат System

GetUnderlyingType() защищенный Метод

protected GetUnderlyingType ( object instance ) : Type
instance object
Результат System.Type