Member Avatar for alex-i

Anyone help me to create one form with C# WPF which use LINQ TO SQL with SQL Server.

WPF

Form has 2 textbox and 1 image in WPF
txtFirstName
txtLastName
Image

SQL Server Database

tblEmp

EmpID - int
Firstname - nvarchar(10)
Lastname - nvarchar(10)
Image - image, varcharmax or whatever you use

dont forget i need to use linq to sql not any other

if anyone do it will help me a lot

You can use WPF with the inbuilt designer to put the controls on there. LINQ to SQL you can use by defining your entities in C# and then creating a DataContext to your database. You would then query it using LINQ.

I suggest you read Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.