How to make friends .net'ovsky linq2sql with hranimoj that returns different types of tables


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
There are hranilki:


IF @AccessEnabled = 1
BEGIN
IF @StartDate is null
SET @StartDate = '01/01/1900'
IF @EndDate is null
SET @EndDate = GETDATE()
IF @ReportType is null
SET @ReportType = 1

IF @ReportType = 1
BEGIN



Which, depending on the input parameters return different tables. In fact it is a wrapper for working with data.
But linq cannot determine the type of the return result. I would like him to explicitly specify.

Is this possible?
by | 8 views

3 Answers

0 like 0 dislike
and how do you use represent?
\r
what would it then returned the System.Object and then you checked, and what are the parameters passed and what the object on the basis of this work?
\r
Don't you think that you are the way to go.
\r
But on the merits I will say the following: the designer is restricted with dynamic queries, complex hranimoj — works, this limitation is not as simple sposobami not do. but you have always the possibility to tweak all hands in .designer.cs that would explicitly specify the data type.
\r
but, again, at the slightest attempt to use the designer code will be returned in the original condition and the repair will have to make again.
\r
but... and there are games with partial fnctions
by
0 like 0 dislike
sorry, stupid iPad.
Wanted to say: does NOT WORK with complex stored procedures
by
0 like 0 dislike
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Mar 25, 2019 by mastersoftna
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
27,911 users