Question : crystal sql statement:

hi all

i have the below sql code that i basically want to input to crystal as a command

i want to replace the X on the first line with a parameter field that the user inputs on the report

can and how do i do this?

mal
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
select ParentPart,Component into #t1 from BomStructure where ParentPart ='X' and Route ='0'

select b.ParentPart,b.Component into #t2 from BomStructure b join #t1 on #t1.Component = b.ParentPart where Route ='0'

select b2.ParentPart,b2.Component into #t3 from BomStructure b2 join #t2 on #t2.Component = b2.ParentPart where Route ='0'

select * from #t1
union
select * from #t2
union
select * from #t3

drop table #t1
drop table #t2
drop table #t3

Answer : crystal sql statement:

Entity Framework is a part of ADO.NET and LINQ is a querying tool. There are two separate things. You can use LINQ with EF, but one is not replacing the other.

Here's how you can get started with EF:

http://msdn.microsoft.com/en-us/library/bb386876.aspx

and some on LINQ:
http://www.programmersheaven.com/2/CSharp3-4
http://dotnetslackers.com/articles/csharp/IntroducingLINQ1.aspx

Arun
Random Solutions  
 
programming4us programming4us