Click here to Skip to main content
15,747,766 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
How to query convert to use entity query ?
I create database in c# and old database copy to new database.But I want to make copies using entities. How to convert use entities this query?

What I have tried:

private static void TableCopy() {
foreach (var tablename in Settings.Default.Student){
var query= @"Insert ınto" + StudentDatabaseName + ".tbl" + tablename +"select * from StudentChangeDatabaseName +"tbl"+tableName);
Updated 20-Sep-18 21:23pm

1 solution

Share this answer
CPallini 21-Sep-18 3:43am    
Maciej Los 21-Sep-18 3:45am    
Thank you, Carlo.

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