diff --git a/FreeSql/DataAnnotations/ExpressionCallAttribute.cs b/FreeSql/DataAnnotations/ExpressionCallAttribute.cs index 6970eca9..85daa395 100644 --- a/FreeSql/DataAnnotations/ExpressionCallAttribute.cs +++ b/FreeSql/DataAnnotations/ExpressionCallAttribute.cs @@ -85,6 +85,11 @@ namespace FreeSql.DataAnnotations /// /// string ParseExpression(Expression exp); + + /// + /// (非公开)内部公共工具类方法 + /// + CommonUtils CommonUtils { get; } } class DefaultUtility : IUtility @@ -92,8 +97,8 @@ namespace FreeSql.DataAnnotations internal ExpressionCallContext _context; public TableInfo GetTableByEntity(Type entityType) => _context?._commonExp._common.GetTableByEntity(entityType); - public string ParseExpression(Expression exp) => _context?._commonExp.ExpressionLambdaToSql(exp, _context._tsc.CloneDisableDiyParse()); + public CommonUtils CommonUtils => _context?._commonExp._common; } } } diff --git a/FreeSql/FreeSql.xml b/FreeSql/FreeSql.xml index 330dc4ac..4cea215e 100644 --- a/FreeSql/FreeSql.xml +++ b/FreeSql/FreeSql.xml @@ -292,6 +292,11 @@ + + + (非公开)内部公共工具类方法 + + 索引设置,如:[Index("{tablename}_idx_01", "name")]