MainTheApplication.cs 567 B

1234567891011121314151617181920212223
  1. using androidAPI.ModelBase;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.Collections.Generic;
  4. using static androidAPI.ModelBase.Inform;
  5. namespace androidAPI.BaseConneckion
  6. {
  7. public class MainTheApplication : DbContext
  8. {
  9. public DbSet<Inform> DogiTut { get; set; }
  10. public DbSet<Breed> Bred { get; set; }
  11. public DbSet<Gender> Gend { get; set; }
  12. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  13. {
  14. optionsBuilder.UseSqlServer(Constans.SqlConnection);
  15. }
  16. }
  17. }