-
Notifications
You must be signed in to change notification settings - Fork 0
/
CarDbContext.cs
27 lines (26 loc) · 1.01 KB
/
CarDbContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Core.Entities.Concrete;
using Entities.Concrete;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
namespace DataAccess.Concrete.EntityFramework
{
public class CarDbContext:DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=Northwind;Trusted_Connection=true");
}
public DbSet<Car> Car { get; set; }
public DbSet<Brand> Brand { get; set; }
public DbSet<Color> Color { get; set; }
public DbSet<Customers> Customers { get; set; }
public DbSet<User> Users { get; set; }
public DbSet<Rentals> Rentals { get; set; }
public DbSet<CarImages> CarImages { get; set; }
public DbSet<OperationClaim> OperationClaims { get; set; }
public DbSet<UserOperationClaim> UserOperationClaims { get; set; }
public DbSet<Payment> Payments { get; set; }
}
}