Search found 4 matches

by nolme
Fri 18 Feb 2022 07:31
Forum: Entity Developer
Topic: Visual Studio 2022
Replies: 29
Views: 1088228

Re: Visual Studio 2022

Hello,
Half Of february has passed. Any news?
Vincent
by nolme
Sun 24 May 2020 19:17
Forum: Entity Developer
Topic: CTE with graph trees
Replies: 2
Views: 6823

Re: CTE with graph trees

Hello,

a) yes, it's 15.0.2000.5 version.
b) I've just installed 6.7.999.0

1) Ok. I've opened a question on StackOverflow (https://stackoverflow.com/questions/619 ... 7c9e86c7bf) to see if someone knows how SSMS map '$node_id' in T-SQL to $node_id_39671D6AD91E4DBD8E43597C9E86C7BF' in database.

2) Ok. So my workaround is to create a function in SQL Server and call it throw DevArt ED like explained here :
https://entityframework.net/knowledge-b ... ine-syntax
by nolme
Wed 13 May 2020 20:22
Forum: Entity Developer
Topic: CTE with graph trees
Replies: 2
Views: 6823

CTE with graph trees

Hello

I have this CTE request working under SSMS :

Code: Select all

-- List all childs (v3 - function)
with rCTE AS
(
   -- Start node
   SELECT r2.FullName AS Output,r1.$node_id AS parentid, r2.$node_id as bottomnode,1 as Tree
   FROM Animal r1 
   JOIN ChildGenealogyLink e ON e.$from_id = r1.$node_id 
   JOIN Animal r2 ON r2.$node_id = e.$to_id 
	AND r1.FullName IN ('F''Sheree Jones Of Dawson City')
	--AND r1.BreederId = 1
   UNION ALL
   -- Recurse part
   SELECT r.FullName,c.bottomnode,r.$node_id,Tree + 1
   FROM rCTE c
   JOIN ChildGenealogyLink e ON e.$from_id = c.bottomnode
   JOIN Animal r ON r.$node_id = e.$to_id
)
SELECT output AS 'Full name' FROM rCTE
OPTION (MAXRECURSION 1000);		-- Set max recursion level
but, in the table, this column $node_id is in fact called '$node_id_39671D6AD91E4DBD8E43597C9E86C7BF'. So DevArt EntityDev generate this virtual function :
public virtual string NodeId39671D6AD91E4DBD8E43597C9E86C7BF (); [..]
so :
1) the random string after NodeId will be different if we recreate the database, that can be a problem.
2) It is possible to convert this CTE into Linq query ?

Thanks for help.
Vincent
by nolme
Tue 12 Sep 2017 20:10
Forum: Entity Developer
Topic: Can Entity Developer create interfaces?
Replies: 6
Views: 8811

Re: Can Entity Developer create interfaces?

3 years later. Is there any improvements on the way to implement Interface ?

Vincent