Example #1
0
        public override IEnumerable <TResult> Convert(DbCommandResult commandResult)
        {
            if (SqlServerOutputClause.ConvertExpression == null)
            {
                SqlServerOutputClause.Build(ServiceProvider.GetRequiredService <DbCommandBuilder>(), ServiceProvider);
            }

            return(SqlServerOutputClause.ConvertExpression.Convert(commandResult, true));
        }
Example #2
0
        public override T Convert(DbCommandResult commandResult)
        {
            if (outputClause.ConvertExpression == null)
            {
                outputClause.Build(ServiceProvider.GetRequiredService <DbCommandBuilder>(), ServiceProvider);
            }

            if (outputClause.ConvertExpression == null)
            {
                return(default);