Class DocSchemaRepo
see cref="DocumentSchema"/> spcific repository implementation.
public class DocSchemaRepo : BaseRepo<DocumentSchema>, IDocSchemaRepo, IRepo<DocumentSchema>, INonQueryRepo<DocumentSchema>
- Inheritance
-
DocSchemaRepo
- Implements
- Inherited Members
- Extension Methods
Constructors
DocSchemaRepo(IDataStore, ISerializer<DocumentSchema>)
Ctor from store.
public DocSchemaRepo(IDataStore store, ISerializer<DocumentSchema> schemaSeri)
Parameters
storeIDataStoreschemaSeriISerializer<DocumentSchema>
Methods
Attach(DocumentSchema)
public override DocumentSchema Attach(DocumentSchema schema)
Parameters
schemaDocumentSchema
Returns
CreateFromStreams(Func<DocumentSchema, IDocSchemaProcessor>, Stream, Stream?, Stream?, Stream?)
Create schema from streams (using validateSchemaSyntax callback for schema syntax validation).
public DocumentSchema CreateFromStreams(Func<DocumentSchema, IDocSchemaProcessor> validateSchemaSyntax, Stream schemaStrm, Stream? formStrm = null, Stream? styleStrm = null, Stream? calcModelStrm = null)
Parameters
validateSchemaSyntaxFunc<DocumentSchema, IDocSchemaProcessor>schemaStrmStreamformStrmStreamstyleStrmStreamcalcModelStrmStream
Returns
CreateFromStreams(IDocProcessorRepo, Stream, Stream?, Stream?, Stream?)
Create schema from streams (using docProcRepo for schema syntax validation).
public DocumentSchema CreateFromStreams(IDocProcessorRepo docProcRepo, Stream schemaStrm, Stream? formStrm = null, Stream? styleStrm = null, Stream? calcModelStrm = null)
Parameters
docProcRepoIDocProcessorReposchemaStrmStreamformStrmStreamstyleStrmStreamcalcModelStrmStream
Returns
CreateFromStreams(SchemaDefinitionStreams, Func<DocumentSchema, IDocSchemaProcessor>)
Create schema from defStreams using validateSchemaSyntax callback for schema syntax validation.
public DocumentSchema CreateFromStreams(SchemaDefinitionStreams defStreams, Func<DocumentSchema, IDocSchemaProcessor> validateSchemaSyntax)
Parameters
defStreamsSchemaDefinitionStreamsvalidateSchemaSyntaxFunc<DocumentSchema, IDocSchemaProcessor>
Returns
CreateFromStreams(SchemaDefinitionStreams, IDocProcessorRepo)
Create schema from defStreams (using docProcRepo for schema syntax validation).
public DocumentSchema CreateFromStreams(SchemaDefinitionStreams defStreams, IDocProcessorRepo docProcRepo)
Parameters
defStreamsSchemaDefinitionStreamsdocProcRepoIDocProcessorRepo
Returns
Delete(DocumentSchema)
public override void Delete(DocumentSchema schema)
Parameters
schemaDocumentSchema
Evict(DocumentSchema)
public override void Evict(DocumentSchema schema)
Parameters
schemaDocumentSchema
FilteredTypeIdList(string?)
List of TypeId(s) optionally filterd by typeIdFilter.
public IQueryable<string> FilteredTypeIdList(string? typeIdFilter = null)
Parameters
typeIdFilterstring
Returns
FormData(string, FormDataType)
Returns form data for schemaId of type.
public Stream FormData(string schemaId, FormDataType type)
Parameters
schemaIdstringtypeFormDataType
Returns
Get(params object[])
public override DocumentSchema Get(params object[] keys)
Parameters
keysobject[]
Returns
GetByAltTypeName(string)
Get schema by
altName.
public DocumentSchema GetByAltTypeName(string altName)
Parameters
altNamestring
Returns
Exceptions
- DataEntityNotFoundException<T>
if
altNamenot found
GetByTypeId(string)
Get schema by typeId.
public DocumentSchema GetByTypeId(string typeId)
Parameters
typeIdstring
Returns
Exceptions
- DataEntityNotFoundException<T>
if
typeIdnot found
Insert(DocumentSchema)
public override DocumentSchema Insert(DocumentSchema schema)
Parameters
schemaDocumentSchema
Returns
StreamsByTypeId(string, bool)
Get schema def. streams by typeId.
public SchemaDefinitionStreams StreamsByTypeId(string typeId, bool schemaStream = false)
Parameters
Returns
TryGetByAltTypeName(string, out DocumentSchema)
Try to get schema by altName.
public bool TryGetByAltTypeName(string altName, out DocumentSchema schema)
Parameters
altNamestringschemaDocumentSchema
Returns
TryGetByTypeId(string, out DocumentSchema)
Try to get schema by typeId.
public bool TryGetByTypeId(string typeId, out DocumentSchema schema)
Parameters
typeIdstringschemaDocumentSchema
Returns
Update(DocumentSchema)
public override DocumentSchema Update(DocumentSchema schema)
Parameters
schemaDocumentSchema