コード例 #1
0
 /// <summary>
 /// 从SQL语句提取输出字段
 /// </summary>
 /// <param name="sqlTpl"></param>
 /// <param name="actionBuilderInfo"></param>
 protected virtual void SetActionOutputFieldInfosFromSql(string sqlTpl, ActionBuilderInfo actionBuilderInfo) => actionBuilderInfo.ActionOutputInfo.ActionFieldInfos = TSqlParser.GetOutputFieldList(sqlTpl).Select(p => new ActionFieldInfo()
 {
     TypeName      = p.CsTypeName,
     Name          = p.Name,
     AllowNullable = p.AllowNullable,
 }).ToList();