C# Class ExoGraph.NHibernate.NHibernateGraphTypeProvider.NHibernateGraphType

Inheritance: StrongGraphType
Mostrar archivo Open project: vc3/ExoModel Class Usage Examples

Public Methods

Method Description
GetGraphInstance ( object instance ) : GraphInstance
RaiseOnSave ( GraphInstance instance ) : void

Protected Methods

Method Description
DeleteInstance ( GraphInstance instance ) : void

Deletes an instance from the persistence store

GetId ( object instance ) : string

Retrieves the Id of an existing entity

GetInstance ( string id ) : object

Returns an entity from the persistence store, or a new entity

NHibernateGraphType ( string @namespace, Type type, object>.Func extensionFactory, ISessionFactoryImplementor sessionFactory ) : System
SaveInstance ( GraphInstance graphInstance ) : void

Persists an entity to the persistence store

Private Methods

Method Description
NHibernateGraphType_PropertyAccessed ( object sender, PropertyAccessedEventArgs e ) : void
NHibernateGraphType_PropertyModified ( object sender, PropertyModifiedEventArgs e ) : void
RaiseOnInit ( object instance ) : GraphInstance

Method Details

DeleteInstance() protected method

Deletes an instance from the persistence store
protected DeleteInstance ( GraphInstance instance ) : void
instance GraphInstance
return void

GetGraphInstance() public method

public GetGraphInstance ( object instance ) : GraphInstance
instance object
return GraphInstance

GetId() protected method

Retrieves the Id of an existing entity
protected GetId ( object instance ) : string
instance object
return string

GetInstance() protected method

Returns an entity from the persistence store, or a new entity
protected GetInstance ( string id ) : object
id string String representation of the id
return object

NHibernateGraphType() protected method

protected NHibernateGraphType ( string @namespace, Type type, object>.Func extensionFactory, ISessionFactoryImplementor sessionFactory ) : System
@namespace string
type System.Type
extensionFactory object>.Func
sessionFactory ISessionFactoryImplementor
return System

RaiseOnSave() public method

public RaiseOnSave ( GraphInstance instance ) : void
instance GraphInstance
return void

SaveInstance() protected method

Persists an entity to the persistence store
protected SaveInstance ( GraphInstance graphInstance ) : void
graphInstance GraphInstance
return void