Method | Description | |
---|---|---|
GenerateTypeFilesFromDatabase ( string folderPath, string nameSpace = "UmbracoCodeFirst.GeneratedTypes" ) : void | ||
Initialise ( |
Scans the supplied assembly for code-first document types, media types, data types and document instances. All items are added or updated before control is returned; after running this method all code-first items found in the assembly should exist in Umbraco. It is important to include *all* required elements in a single call to initialise; custom data types used within a document type must be available when the document type is created.
|
|
Initialise ( IEnumerable |
Scans the supplied collection of assemblies for code-first document types, media types, data types and document instances. All items are added or updated before control is returned; after running this method all code-first items found in the collection should exist in Umbraco. It is important to include *all* required elements in a single call to initialise; custom data types used within a document type must be available when the document type is created.
|
|
Initialise ( IEnumerable |
Scans the supplied collection of types for code-first document types, media types, data types and document instances. All items are added or updated before control is returned; after running this method all code-first items found in the collection should exist in Umbraco. It is important to include *all* required elements in a single call to initialise; custom data types used within a document type must be available when the document type is created.
|
|
Invalidate ( ) : void | ||
Log ( string message, object source, [ sourceMethod = null ) : void | ||
Warn ( string message, object source, [ sourceMethod = null ) : void |
Method | Description | |
---|---|---|
CodeFirstManager ( ) : System |
Constructs the singleton instance
|
|
CodeFirstManager_Invalidating ( object sender, InvalidatingEventArgs e ) : void | ||
FilterTreeNodes ( Umbraco.Web.Trees.TreeControllerBase sender, Umbraco.Web.Trees.TreeNodesRenderingEventArgs e ) : void | ||
InitialiseModules ( IEnumerable |
public GenerateTypeFilesFromDatabase ( string folderPath, string nameSpace = "UmbracoCodeFirst.GeneratedTypes" ) : void | ||
folderPath | string | |
nameSpace | string | |
return | void |
public Initialise ( |
||
assembly | The assembly to scan | |
refreshCache | bool | True to refresh the Umbraco XML cache after creating document instances |
return | void |
public Initialise ( IEnumerable |
||
assemblies | IEnumerable |
The assemblies to scan |
refreshCache | bool | True to refresh the Umbraco XML cache after creating document instances |
return | void |
public Initialise ( IEnumerable |
||
types | IEnumerable |
The types to scan |
refreshCache | bool | True to refresh the Umbraco XML cache after creating document instances |
return | void |
public Log ( string message, object source, [ sourceMethod = null ) : void | ||
message | string | |
source | object | |
sourceMethod | [ | |
return | void |
public Warn ( string message, object source, [ sourceMethod = null ) : void | ||
message | string | |
source | object | |
sourceMethod | [ | |
return | void |