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

            return(returningClause.ConvertExpression.Convert(commandResult, false));
        }
예제 #2
0
        public override T Convert(DbCommandResult commandResult)
        {
            if (returningClause.ConvertExpression == null)
            {
                returningClause.Build(ServiceProvider.GetRequiredService <DbCommandBuilder>(), ServiceProvider);
            }

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