You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IDataBaseContext.cs 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. using Karsha_Site.Domain.Entinies.Products;
  2. using Karsha_Site.Domain.Entinies.Customers;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading;
  9. using System.Threading.Tasks;
  10. using Karsha_Site.Domain.Entities.Products;
  11. using Karsha_Site.Domain.Entities.About;
  12. using System.ComponentModel;
  13. namespace Karsha_Site.Application.Interfaces.Contexts
  14. {
  15. public interface IDataBaseContext
  16. {
  17. DbSet<Customer> Customers { get; set; }
  18. DbSet<Category> Categories { get; set; }
  19. DbSet<Product> Products { get; set; }
  20. DbSet<ProductImages> ProductImages { get; set; }
  21. DbSet<ProductFeatures> ProductFeatures { get; set; }
  22. DbSet<AboutUs> Abouts { get; set; }
  23. DbSet<AboutAddress> AboutAddress { get; set; }
  24. DbSet<AboutTels> AboutTels { get; set; }
  25. int SaveChanges(bool acceptAllChangesOnSuccess);
  26. int SaveChanges();
  27. Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = new CancellationToken());
  28. Task<int> SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken());
  29. }
  30. }