コード例 #1
0
 /// <summary>
 /// 从SQL中提取输入参数
 /// </summary>
 /// <param name="sqlTpl"></param>
 /// <param name="actionBuilderInfo"></param>
 protected virtual void SetActionInputFieldInfosFromSql(string sqlTpl, ActionBuilderInfo actionBuilderInfo) => actionBuilderInfo.ActionInputInfo.ActionFieldInfos = TSqlParser.GetParameters(sqlTpl).Select(p => new ActionFieldInfo()
 {
     TypeName = p.CsTypeName,
     Name     = p.Name?.TrimStart('@')
 }).ToList();