The very first thing you should do upon being handed an existing project is to familiarize yourself with the major tools used in that project. You're not going to be very successful hacking away at a project based on a significant tool such as Entity Framework without investing some time to learn about that tool. Open up the project that contains the EntityDataModel.edmx file, look at the references, see what version of EntityFramework is being used, pick your favorite learning method (books, videos, blog posts, whatever), and dig in investing the hours needed to learn how to work with that tool.
But that's not the question you asked.
This section of the app.config file gives the clues you need:
data source=SDDMS-010\SQLEXPRESS;initial catalog=PCApp_Taxitech;user id=sa;password=(redacted);
- You are looking for a database named PCApp_Taxitech
- Hosted in Microsoft SQL Server Express (not a tool you're familiar
with? Take some time to read up on it)
- Hosted on a machine named SDDMS-010
- You have the credentials to log in: user id = sa, password = (redacted)
If you have access to the machine SDDMS-010, then you're in business. You can open up the database in SQL Server Management Studio (Server name: SDDMS-010\SQLEXPRESS, Authentication: SQL Server Authentication, User name: sa, Password: (redacted)) and begin looking around.
If you don't have access to that machine, Entity Framework can create the database for you.
Install SQL Server Express
Find the project containing the EntityModel.edmx file, open the app.config, and edit the connection string. Set the data source, user id, and password to match the SQL Express instance you installed.
Double-click the EntityModel.edmx file in Visual Studio. You should see an entity model diagram.
Right-click in the empty space somewhere on the diagram. Select "Generate database from model", and click through the options in the dialog that comes up.
Once Visual Studio finishes creating the database, you can now use SQL Server Management Studio to connect to your newly installed database instance and begin poking around in your database.
If your database requires some seed data, you may need to get some project-specific information on how to properly fill in that seed data in your new database.
So that will get you a database to poke around in using SSMS. As far as connecting from code, you're quickly going to run out of luck without familiarizing yourself with Entity Framework first. In general, though, it goes something like this:
If the .edmx file is in a separate project than your executable, you may need to edit the app.config file in your executable's project. Set the data source, initial catalog, user id, and password to match your database.
Under the EntityModel.edmx file, look for a file that ends with .Context.tt. under that file, look for a file that ends with .Context.cs. Open up that file.
Look for a class derived from DbContext.
Create an instance of that class, and use Linq queries to access that data provided by that class.
For example, your class may look something like this:
public partial class MyDataContext : DbContext
{
public MyDataContext()
: base("name=MyDataContext")
public virtual DbSet<MyEntity> MyEntities { get; set; }
}
You would be able to select all of the MyEntities using this code:
var context = new MyDataContext();
var data = from e in context.MyEntities
select e;