Пример #1
0
 /// <summary>
 /// 获取列名
 /// </summary>
 /// <param name="expression">表达式</param>
 /// <param name="entity">实体类型</param>
 /// <param name="right">是否右侧操作</param>
 public string GetColumn(Expression expression, Type entity, bool right) => $"t_{Lambdas.GetLastName(expression, right)}";
Пример #2
0
 /// <summary>
 /// 获取列名
 /// </summary>
 /// <typeparam name="TEntity">实体类型</typeparam>
 /// <param name="column">列名表达式</param>
 public string GetColumn <TEntity>(Expression <Func <TEntity, object> > column) => $"t_{Lambdas.GetLastName(column)}";