Class BaseFunctionDescriptor
Inheritance
BaseFunctionDescriptor
Assembly: LemonEdge.Database.Connector.dll
Syntax
public abstract class BaseFunctionDescriptor : BaseSQLProgram
Constructors
BaseFunctionDescriptor(EntityDescriptor, IQueryBuilderFactory, IEntityDescriptorFactory)
Declaration
protected BaseFunctionDescriptor(EntityDescriptor descriptor, IQueryBuilderFactory builderFactory, IEntityDescriptorFactory entityDescriptorFactory)
Parameters
Properties
BuilderFactory
Declaration
protected IQueryBuilderFactory BuilderFactory { get; }
Property Value
Descriptor
Declaration
public EntityDescriptor Descriptor { get; }
Property Value
EntityDescriptorFactory
Declaration
protected IEntityDescriptorFactory EntityDescriptorFactory { get; }
Property Value
IncludeWhenChangingTableStructure
Declaration
public override bool IncludeWhenChangingTableStructure { get; }
Property Value
Overrides
IsSchemaBound
Declaration
public abstract bool IsSchemaBound { get; }
Property Value
Methods
AddCanvasFilter(IQuerySelectBuilder, EntityDescriptor, bool)
Declaration
protected static void AddCanvasFilter(IQuerySelectBuilder sbf, EntityDescriptor desc, bool allowHistory)
Parameters
AddCoreParameters(IQueryFunctionBuilder)
We have five common parameters across all functions: accountId, canvasId, teamId, userId, asOfDate
Declaration
protected void AddCoreParameters(IQueryFunctionBuilder fb)
Parameters
CreateForOtherDescriptor(EntityDescriptor)
Declaration
public abstract BaseFunctionDescriptor CreateForOtherDescriptor(EntityDescriptor other)
Parameters
Returns
DropFunctions(ObseleteEntityDescriptor, IDataAccessor, IDbConnection)
Declaration
public Task DropFunctions(ObseleteEntityDescriptor obseleteDesc, IDataAccessor accessor, IDbConnection cn)
Parameters
Returns
DropFunctions(IDataAccessor, IDbConnection)
Declaration
public Task DropFunctions(IDataAccessor accessor, IDbConnection cn)
Parameters
Returns
GetCanvasCteSelect(EntityDescriptor, bool, bool, IQueryBuilderFactory)
Declaration
protected static IQuerySelectBuilder GetCanvasCteSelect(EntityDescriptor desc, bool forceNoLock, bool includeLastUpdated, IQueryBuilderFactory queryBuilderFactory)
Parameters
Returns
GetCreateFunction()
Declaration
public abstract string GetCreateFunction()
Returns
GetCreateSQL()
Declaration
public override sealed string GetCreateSQL()
Returns
Overrides
GetDoesExistSQL()
Declaration
public override sealed string GetDoesExistSQL()
Returns
Overrides
GetDoesFunctionExistSQL()
Declaration
public virtual string GetDoesFunctionExistSQL()
Returns
GetDropFunctionSQL()
Declaration
public string GetDropFunctionSQL()
Returns
GetDropFunctionSQL(ObseleteEntityDescriptor)
Declaration
public string GetDropFunctionSQL(ObseleteEntityDescriptor obseleteDesc)
Parameters
Returns
GetDropSQL()
Declaration
public override sealed string GetDropSQL()
Returns
Overrides
GetFunctionName(string, string, string)
Declaration
public abstract string GetFunctionName(string itemName, string setName, string replicatedFromItemName)
Parameters
Returns
Extension Methods