Class Schema
Represents an instance of data modeling schema source
Inheritance
System.Object
Schema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data.Modeling
Assembly: Azos.dll
Syntax
public class Schema
Constructors
Schema(Configuration, IEnumerable<String>, Boolean, ScriptRunner)
Declaration
public Schema(Configuration source, IEnumerable<string> includePaths = null, bool runScript = true, ScriptRunner runner = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | source | |
System.Collections.Generic.IEnumerable<System.String> | includePaths | |
System.Boolean | runScript | |
ScriptRunner | runner |
Schema(String, IEnumerable<String>, Boolean, ScriptRunner)
Declaration
public Schema(string fileName, IEnumerable<string> includePaths = null, bool runScript = true, ScriptRunner runner = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | |
System.Collections.Generic.IEnumerable<System.String> | includePaths | |
System.Boolean | runScript | |
ScriptRunner | runner |
Fields
CONFIG_INCLUDE_SECTION
Declaration
public const string CONFIG_INCLUDE_SECTION = "include"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_SCHEMA_SECTION
Declaration
public const string CONFIG_SCHEMA_SECTION = "modeling-schema"
Field Value
Type | Description |
---|---|
System.String |
Properties
IncludePaths
Returns include paths that are searched for included files
Declaration
public IEnumerable<string> IncludePaths { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Source
Returns the source root tree after includes were processed and script was run
Declaration
public IConfigSectionNode Source { get; }
Property Value
Type | Description |
---|---|
IConfigSectionNode |
SourceOriginal
Returns the source root tree before script was run but all includes processed
Declaration
public IConfigSectionNode SourceOriginal { get; }
Property Value
Type | Description |
---|---|
IConfigSectionNode |
SourceScriptRunner
Returns script runner used for schema source evaluation. Null returned when no scripts were executed
Declaration
public ScriptRunner SourceScriptRunner { get; }
Property Value
Type | Description |
---|---|
ScriptRunner |