Exemple #1
0
        public void Configure(EntityTypeBuilder <MilkTestEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.Farm)
            .WithMany(e => e.Pickupss)
            .OnDelete(DeleteBehavior.Restrict);
        }
        public void Configure(EntityTypeBuilder <FarmerEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasMany(e => e.TradingPostListingss)
            .WithOne(e => e.Farmer)
            .OnDelete(DeleteBehavior.Restrict);
        }
Exemple #3
0
        public void Configure(EntityTypeBuilder <TechnicalDocumentCategoryEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasMany(e => e.TechnicalDocumentss)
            .WithOne(e => e.TechnicalDocumentCategory)
            .OnDelete(DeleteBehavior.Restrict);
        }
Exemple #4
0
        public void Configure(EntityTypeBuilder <PromotedArticlesEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasMany(e => e.NewsArticless)
            .WithOne(e => e.PromotedArticles)
            .OnDelete(DeleteBehavior.Restrict);
        }
Exemple #5
0
        public void Configure(EntityTypeBuilder <SustainabilityPostEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.Image)
            .WithOne(e => e.SustainabilityPostImage)
            .OnDelete(DeleteBehavior.SetNull);
            builder
            .HasOne(e => e.File)
            .WithOne(e => e.SustainabilityPostFile)
            .OnDelete(DeleteBehavior.SetNull);
        }
        public void Configure(EntityTypeBuilder <NewsArticleEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.PromotedArticles)
            .WithMany(e => e.NewsArticless)
            .OnDelete(DeleteBehavior.Restrict);
            builder
            .HasOne(e => e.FeatureImage)
            .WithOne(e => e.NewsArticleFeatureImage)
            .OnDelete(DeleteBehavior.SetNull);
        }
Exemple #7
0
        public void Configure(EntityTypeBuilder <AgriSupplyDocumentEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.AgriSupplyDocumentCategory)
            .WithMany(e => e.AgriSupplyDocumentss)
            .OnDelete(DeleteBehavior.Restrict);
            builder
            .HasOne(e => e.File)
            .WithOne(e => e.AgriSupplyDocumentFile)
            .OnDelete(DeleteBehavior.SetNull);
        }
        public void Configure(EntityTypeBuilder <TradingPostListingEntity> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.Farmer)
            .WithMany(e => e.TradingPostListingss)
            .OnDelete(DeleteBehavior.Restrict);
            builder
            .HasOne(e => e.ProductImage)
            .WithOne(e => e.TradingPostListingProductImage)
            .OnDelete(DeleteBehavior.SetNull);
        }
        public void Configure(EntityTypeBuilder <TradingPostListingsTradingPostCategories> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.TradingPostListings)
            .WithMany(e => e.TradingPostCategoriess)
            .OnDelete(DeleteBehavior.Cascade);

            builder
            .HasOne(e => e.TradingPostCategories)
            .WithMany(e => e.TradingPostListingss)
            .OnDelete(DeleteBehavior.Cascade);
        }
        public void Configure(EntityTypeBuilder <FarmersFarms> builder)
        {
            AbstractModelConfiguration.Configure(builder);

            builder
            .HasOne(e => e.Farmers)
            .WithMany(e => e.Farmss)
            .OnDelete(DeleteBehavior.Cascade);

            builder
            .HasOne(e => e.Farms)
            .WithMany(e => e.Farmerss)
            .OnDelete(DeleteBehavior.Cascade);
        }
Exemple #11
0
 public void Configure(EntityTypeBuilder <AdminEntity> builder)
 {
     AbstractModelConfiguration.Configure(builder);
 }
 public void Configure(EntityTypeBuilder <UploadFile> builder)
 {
     AbstractModelConfiguration.Configure(builder);
 }
Exemple #13
0
 public void Configure(EntityTypeBuilder <TradingPostCategoryEntity> builder)
 {
     AbstractModelConfiguration.Configure(builder);
 }