Exemplo n.º 1
0
 /// <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";
Exemplo n.º 2
0
 /// <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";
Exemplo n.º 3
0
 /// <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}]";
Exemplo n.º 4
0
 /// <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 + "]";