Ejemplo n.º 1
0
 /// <summary>
 /// Gets the name of the table in the database for the specified type,
 /// using the configured <see cref="ITableNameResolver"/>.
 /// </summary>
 /// <param name="type">The <see cref="Type"/> to get the table name for.</param>
 /// <param name="connection">The database connection instance.</param>
 /// <returns>The table name in the database for <paramref name="type"/>.</returns>
 public static string Table(Type type, IDbConnection connection) =>
 Table(type, DommelMapper.GetSqlBuilder(connection));
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the name of the column in the database for the specified type,
 /// using the configured <see cref="IColumnNameResolver"/>.
 /// </summary>
 /// <param name="propertyInfo">The <see cref="PropertyInfo"/> to get the column name for.</param>
 /// <param name="connection">The database connection instance.</param>
 /// <returns>The column name in the database for <paramref name="propertyInfo"/>.</returns>
 public static string Column(PropertyInfo propertyInfo, IDbConnection connection)
 => Column(propertyInfo, DommelMapper.GetSqlBuilder(connection));