Changeset e9bb9d1 for PostgreSqlDotnetCore/Data
- Timestamp:
- 08/28/24 21:41:13 (3 months ago)
- Branches:
- main
- Children:
- a850333
- Parents:
- 118e414
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Data/ApplicationDbContext.cs
r118e414 re9bb9d1 50 50 modelBuilder.Entity<Pet_GaleryClass>().Metadata.SetIsTableExcludedFromMigrations(true); 51 51 modelBuilder.Entity<BlogPostAnswers>().Metadata.SetIsTableExcludedFromMigrations(true); 52 53 modelBuilder.Entity<PetDetailsProcedure>().Metadata.SetIsTableExcludedFromMigrations(true); 52 54 //modelBuilder.Entity<PetCareAllData>().Metadata.SetIsTableExcludedFromMigrations(true); 53 54 55 55 56 // додадени следните два реда на 28.08 57 // modelBuilder.Entity<VetCenterWithCity>().HasNoKey(); // Дефинирајте дека VIEW-от нема примарен клуч 58 // modelBuilder.Entity<VetCenterWithCity>().ToView("vet_centers_with_city"); // Поставете го името на VIEW-от 59 modelBuilder.Entity<VetCenterWithCity>().HasNoKey().ToView("vet_centers_with_city"); 56 60 base.OnModelCreating(modelBuilder); 57 61 … … 65 69 public virtual DbSet<UsersClass> CustomerObj { get; set; } 66 70 public virtual DbSet<VetCenter> VetCentersObj { get; set; } 71 72 // додадено на 28.08 73 public virtual DbSet<VetCenterWithCity> VetCentersWithCity { get; set; } 74 67 75 public virtual DbSet<BlogPostConsultation> BlogPostControllerObj { get; set; } 68 76 public virtual DbSet<RolesClass> RoleControllerObj { get; set; } … … 83 91 public virtual DbSet<TherapyClass> theraObj { get; set; } 84 92 public virtual DbSet<Type_Of_PetsClass> typeofObj { get; set; } 93 94 public virtual DbSet<PetDetailsProcedure> PetDetailsProcedureObj { get; set; } 95 96 //public virtual DbSet<PetDetailsProcedure> AddVetCenter { get; set; } 97 85 98 } 86 99 }
Note:
See TracChangeset
for help on using the changeset viewer.