Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use entity lambda query and insert table.But I dont choose same area.How to select and where condition this area.

SCHOOL TABLE

SCHOOL ID  // CLASS ID   // CLASS NAME    
1             1A           1
1             1B           1
1             1C           1
1             1D           1
2             2A           1
2             2B           1
2             2C           1
3             3A           1
4             4A           1

SCHOOLS INFORMATION TABLE (SCHOOLID,CLASSID,CLASSNAME)


ı want to school table insert to school information.

FOR EXAMPLE THIS SQL QUERY

 INSERT INTO SCHOOLID,CLASSID,CLASSNAME FROM SCHOOLINFORMATION(SELECT SCHOOLID,CLASSID,CLASSNAME FROM SCHOOL WHERE CLASSID NOT IN (3A))


What I have tried:

I want to SCHOOL INFORMATION TABLE

SCHOOL ID CLASS ID CLASS NAME
1 1A 1
1 1B 1
1 1C 1
1 1D 1
2 2A 1
2 2B 1
2 2C 1
Posted
Updated 30-Aug-19 8:56am
v3

1 solution

.Where(s=>s.CLASSID).


This where goes nowhere. And not much else.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900