Class OrpheusModuleDefinition
- Namespace
- OrpheusCore
- Assembly
- OrpheusCore.dll
The OrpheusModuleDefinition can save and load a module definition. A module definition, includes relationship between the module tables and that is required for a module to be functional. IOrpheusModule
public class OrpheusModuleDefinition : IOrpheusModuleDefinition
- Inheritance
-
OrpheusModuleDefinition
- Implements
- Inherited Members
Constructors
OrpheusModuleDefinition()
Initializes a new instance of the OrpheusModuleDefinition class.
public OrpheusModuleDefinition()
Properties
Database
[IgnoreDataMember]
public IOrpheusDatabase Database { get; set; }
Property Value
- IOrpheusDatabase
Orpheus database.
DetailTableOptions
public List<IOrpheusTableOptions> DetailTableOptions { get; set; }
Property Value
- List<IOrpheusTableOptions>
List of module's detail table options.
MainTableOptions
public IOrpheusTableOptions MainTableOptions { get; set; }
Property Value
- IOrpheusTableOptions
Module's main table options.
Name
public string Name { get; set; }
Property Value
- string
Module's name.
ReferenceTableOptions
public List<IOrpheusTableOptions> ReferenceTableOptions { get; set; }
Property Value
- List<IOrpheusTableOptions>
List of module reference tables.
Methods
CreateTableOptions()
Creates an instance of OrpheusTableOptions.
public IOrpheusTableOptions CreateTableOptions()
Returns
- IOrpheusTableOptions
An IOrpheusTableOptions instance
CreateTableOptions(string, Type)
Creates an instance of OrpheusTableOptions.
public IOrpheusTableOptions CreateTableOptions(string tableName, Type modelType)
Parameters
Returns
- IOrpheusTableOptions
An IOrpheusTableOptions instance
CreateTableOptions(Type)
Creates an instance of OrpheusTableOptions.
public IOrpheusTableOptions CreateTableOptions(Type modelType)
Parameters
modelTypeTypeThe model type.
Returns
- IOrpheusTableOptions
An IOrpheusTableOptions instance
LoadFrom(Stream)
Load definition from stream.
public void LoadFrom(Stream stream)
Parameters
streamStreamThe stream.
LoadFrom(string)
Loads definition from a file.
public void LoadFrom(string fileName)
Parameters
fileNamestringThe filename.
LoadFromDB(string)
Loads definition from the connected database.
public void LoadFromDB(string moduleName)
Parameters
moduleNamestringThe module name.
SaveTo(Stream)
Save definition to memory.
public void SaveTo(Stream stream)
Parameters
streamStreamThe stream.
SaveTo(string)
Save definition to a file.
public void SaveTo(string fileName)
Parameters
fileNamestringThe filename.
SaveToDB()
Save definition to the database.
public void SaveToDB()