Skip to content

Commit 97fad7d

Browse files
Connected with database with EF Core
1 parent 5b4a8e5 commit 97fad7d

21 files changed

+1238
-36
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using Microsoft.EntityFrameworkCore;
2+
using YangiBozor.Domain.Entities;
3+
4+
namespace YangiBozor.Data.DbContexts;
5+
6+
public class YangiBozorDbContext : DbContext
7+
{
8+
public YangiBozorDbContext(DbContextOptions<YangiBozorDbContext> options)
9+
: base(options)
10+
{
11+
12+
}
13+
14+
public DbSet<User> Users { get; set; }
15+
public DbSet<Cart> Carts { get; set; }
16+
public DbSet<Category> Categories { get; set; }
17+
public DbSet<ChatBox> ChatBoxes { get; set; }
18+
public DbSet<Order> Orders { get; set; }
19+
public DbSet<OrderItem> OrderItems { get; set; }
20+
public DbSet<Payment> Payments { get; set; }
21+
public DbSet<Product> Products { get; set; }
22+
public DbSet<PaymentType> PaymentTypes { get; set; }
23+
}

0 commit comments

Comments
 (0)