Skip to content

Instantly share code, notes, and snippets.

View liannoi's full-sized avatar

Maksym Liannoi liannoi

View GitHub Profile
@sandord
sandord / gist:400553
Last active September 24, 2023 08:17
Get property name from lambda expression
using System.Linq.Expressions;
/// <summary>
/// Returns the name of the specified property of the specified type.
/// </summary>
/// <typeparam name="T">The type the property is a member of.</typeparam>
/// <param name="property">The property expression.</param>
/// <returns>The property name.</returns>
public static string GetPropertyName<T>(Expression<Func<T, object>> property)
{
@gembin
gembin / mysql_waiting_for_table_metadata_lock.md
Last active December 22, 2023 11:09
MySQL - Waiting for table metadata lock
SHOW ENGINE INNODB STATUS \G

Look for the Section -

TRANSACTIONS