/// <summary> /// Gets the name of the parent parameter. /// </summary> /// <param name="autoIDProperty">The automatic identifier property.</param> /// <returns>The parent parameter name</returns> protected string GetParentParameterName(IAutoIDProperty autoIDProperty) => $"@{autoIDProperty?.ParentMapping.TableName}{autoIDProperty?.ColumnName}Temp";
/// <summary> /// Gets the type of the parameter. /// </summary> /// <param name="autoIDProperty">The automatic identifier property.</param> /// <returns>The parameter type name</returns> protected string GetParameterType(IAutoIDProperty autoIDProperty) => "BIGINT";
/// <summary> /// Gets the name of the parent column. /// </summary> /// <param name="childMapping">The child mapping.</param> /// <param name="autoIDProperty">The automatic identifier property.</param> /// <param name="suffix">The suffix.</param> /// <returns>The parent column name</returns> protected string GetParentColumnName(IMapping childMapping, IAutoIDProperty autoIDProperty, string suffix = "") => $"{GetTableName(childMapping, suffix)}.[{autoIDProperty?.ParentMapping.TableName}{autoIDProperty?.ColumnName}]";
/// <summary> /// Gets the name of the column. /// </summary> /// <param name="idProperty">The identifier property.</param> /// <param name="suffix">The suffix.</param> /// <returns>The column name</returns> protected string GetColumnName(IAutoIDProperty idProperty, string suffix = "") => GetTableName(idProperty?.ParentMapping, suffix) + ".[" + idProperty?.ColumnName + "]";