Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using SQL and LINQ I need to write queries to insert, delete and update a list of employees (each employee has id, name, address, email...)

Using SQL and LINQ I need to write queries to insert, delete and update a list of employees (each employee has id, name, address, email...) in C#. please write me at least one example. I could not find it anywhere

image text in transcribed

File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q) QueueLette...skExercise LS Debug Any CPU Lina Shalabi_Assignment1 Live S ex2-extend1.cs Vacations.cs 0 Employees.cs ? Program.cs c# Lina Shalabi_Assignment1 CustomClass.cs* x Payroll.cs Program.cs Lina_Shalabi_Assignment1.CustomClass vacations I Server Explorer Toolbox Console.WriteLine(i.id + " " + i.name + " " + i.address + " " + i.address + " " + i.phone + " " + i.roll); } } } //public void AddEmployees (List employees) //{ //var items = from emp in employees // select emp; 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 82 % // Il public int DeleteEmployees (List employees, int id) // //var items = from emp in employees // select emp.id = id; //return id; //} public void Update(List employees) { var items = (from emp in employees select emp) 1 ! 0 Ln: 60 Ch: 36 SPC CRLF Error List www 1 x Entire Solution 1 Error ! O Warnings 0 0 of 35 Messages *7 Build + IntelliSense Search Error List File Code Description X CS1002 ; expected Project Lina Shalabi_Assignment1 Line Suppression State 60 Active CustomClass.cs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

8. Describe the steps in the development planning process.

Answered: 1 week ago