/// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <SpecificationAttribute> builder)
        {
            builder.HasTableName(nameof(SpecificationAttribute));

            builder.Property(attribute => attribute.Name).IsNullable(false);
            builder.Property(attribute => attribute.DisplayOrder);
        }
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ProductAttribute> builder)
        {
            builder.HasTableName(nameof(ProductAttribute));

            builder.Property(attribute => attribute.Name).IsNullable(false);
            builder.Property(productattribute => productattribute.Description);
        }
示例#3
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <TaxCategory> builder)
        {
            builder.HasTableName(nameof(TaxCategory));

            builder.Property(taxCategory => taxCategory.Name).HasLength(400).IsNullable(false);
            builder.Property(taxcategory => taxcategory.DisplayOrder);
        }
示例#4
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <DeliveryDate> builder)
        {
            builder.HasTableName(nameof(DeliveryDate));

            builder.Property(date => date.Name).HasLength(400).IsNullable(false);
            builder.Property(date => date.DisplayOrder);
        }
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ReturnRequestAction> builder)
        {
            builder.HasTableName(nameof(ReturnRequestAction));

            builder.Property(action => action.Name).HasLength(400).IsNullable(false);
            builder.Property(action => action.DisplayOrder);
        }
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <CrossSellProduct> builder)
        {
            builder.HasTableName(nameof(CrossSellProduct));

            builder.Property(crosssellproduct => crosssellproduct.ProductId1);
            builder.Property(crosssellproduct => crosssellproduct.ProductId2);
        }
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ProductAvailabilityRange> builder)
        {
            builder.HasTableName(nameof(ProductAvailabilityRange));

            builder.Property(range => range.Name).HasLength(400).IsNullable(false);
            builder.Property(range => range.DisplayOrder);
        }
示例#8
0
 /// <summary>
 /// Configures the entity
 /// </summary>
 /// <param name="builder">The builder to be used to configure the entity</param>
 public override void Configure(EntityMappingBuilder <Setting> builder)
 {
     builder.HasTableName(nameof(Setting));
     builder.Property(setting => setting.Name).HasLength(200).IsNullable(false);
     builder.Property(setting => setting.Value).IsNullable(false);
     builder.Property(setting => setting.StoreId);
 }
示例#9
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <PictureBinary> builder)
        {
            builder.HasTableName(nameof(PictureBinary));

            builder.Property(picturebinary => picturebinary.BinaryData);
            builder.Property(picturebinary => picturebinary.PictureId);
        }
示例#10
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <DiscountUsageHistory> builder)
        {
            builder.HasTableName(nameof(DiscountUsageHistory));

            builder.Property(historyEntry => historyEntry.DiscountId);
            builder.Property(historyEntry => historyEntry.OrderId);
            builder.Property(historyEntry => historyEntry.CreatedOnUtc);
        }
示例#11
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <SearchTerm> builder)
        {
            builder.HasTableName(nameof(SearchTerm));

            builder.Property(searchTerm => searchTerm.Keyword);
            builder.Property(searchTerm => searchTerm.StoreId);
            builder.Property(searchTerm => searchTerm.Count);
        }
示例#12
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ManufacturerTemplate> builder)
        {
            builder.HasTableName(nameof(ManufacturerTemplate));

            builder.Property(template => template.Name).HasLength(400).IsNullable(false);
            builder.Property(template => template.ViewPath).HasLength(400).IsNullable(false);
            builder.Property(manufacturertemplate => manufacturertemplate.DisplayOrder);
        }
示例#13
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <VendorNote> builder)
        {
            builder.HasTableName(nameof(VendorNote));

            builder.Property(note => note.Note).IsNullable(false);
            builder.Property(note => note.VendorId);
            builder.Property(note => note.CreatedOnUtc);
        }
示例#14
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <PermissionRecord> builder)
        {
            builder.HasTableName(nameof(PermissionRecord));

            builder.Property(record => record.Name).IsNullable(false);
            builder.Property(record => record.SystemName).HasLength(255).IsNullable(false);
            builder.Property(record => record.Category).HasLength(255).IsNullable(false);
        }
示例#15
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ShippingMethod> builder)
        {
            builder.HasTableName(nameof(ShippingMethod));

            builder.Property(method => method.Name).HasLength(400).IsNullable(false);
            builder.Property(method => method.Description);
            builder.Property(method => method.DisplayOrder);
        }
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ProductReviewReviewTypeMapping> builder)
        {
            builder.HasTableName(NopMappingDefaults.ProductReviewReviewTypeTable);

            builder.Property(prrt => prrt.ProductReviewId);
            builder.Property(prrt => prrt.ReviewTypeId);
            builder.Property(prrt => prrt.Rating);
        }
示例#17
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <Warehouse> builder)
        {
            builder.HasTableName(nameof(Warehouse));

            builder.Property(warehouse => warehouse.Name).HasLength(400).IsNullable(false);
            builder.Property(warehouse => warehouse.AdminComment);
            builder.Property(warehouse => warehouse.AddressId);
        }
示例#18
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ProductReviewHelpfulness> builder)
        {
            builder.HasTableName(nameof(ProductReviewHelpfulness));

            builder.Property(productReviewHelpfulness => productReviewHelpfulness.ProductReviewId);
            builder.Property(productReviewHelpfulness => productReviewHelpfulness.WasHelpful);
            builder.Property(productReviewHelpfulness => productReviewHelpfulness.CustomerId);
        }
示例#19
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <RecurringPaymentHistory> builder)
        {
            builder.HasTableName(nameof(RecurringPaymentHistory));

            builder.Property(historyEntry => historyEntry.RecurringPaymentId);
            builder.Property(historyEntry => historyEntry.OrderId);
            builder.Property(historyEntry => historyEntry.CreatedOnUtc);
        }
示例#20
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <StoreMapping> builder)
        {
            builder.HasTableName(nameof(StoreMapping));

            builder.Property(storeMapping => storeMapping.EntityName).HasLength(400).IsNullable(false);
            builder.Property(storemapping => storemapping.EntityId);
            builder.Property(storemapping => storemapping.StoreId);
        }
示例#21
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <RelatedProduct> builder)
        {
            builder.HasTableName(nameof(RelatedProduct));

            builder.Property(product => product.ProductId1);
            builder.Property(product => product.ProductId2);
            builder.Property(product => product.DisplayOrder);
        }
示例#22
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <PollVotingRecord> builder)
        {
            builder.HasTableName(nameof(PollVotingRecord));

            builder.Property(pollvotingrecord => pollvotingrecord.PollAnswerId);
            builder.Property(pollvotingrecord => pollvotingrecord.CustomerId);
            builder.Property(pollvotingrecord => pollvotingrecord.CreatedOnUtc);
        }
示例#23
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ActivityLogType> builder)
        {
            builder.HasTableName(nameof(ActivityLogType));

            builder.Property(logType => logType.SystemKeyword).HasLength(100).IsNullable(false);
            builder.Property(logType => logType.Name).HasLength(200).IsNullable(false);
            builder.Property(activitylogtype => activitylogtype.Enabled);
        }
示例#24
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <AclRecord> builder)
        {
            builder.HasTableName(nameof(AclRecord));

            builder.Property(record => record.EntityName).HasLength(400).IsNullable(false);
            builder.Property(aclrecord => aclrecord.EntityId);
            builder.Property(aclrecord => aclrecord.CustomerRoleId);
        }
示例#25
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ProductPicture> builder)
        {
            builder.HasTableName(NopMappingDefaults.ProductPictureTable);

            builder.Property(productpicture => productpicture.ProductId);
            builder.Property(productpicture => productpicture.PictureId);
            builder.Property(productpicture => productpicture.DisplayOrder);
        }
 public static void BuildIdentityUserWithEmail <TEntity, TKey>(this EntityMappingBuilder <TEntity> builder)
     where TKey : IEquatable <TKey>
     where TEntity : class, IIdentityUserWithEmail <TKey>
 {
     //builder.Property(u => u.ConcurrencyStamp).IsConcurrencyToken();
     builder.Property(u => u.EmailAddress).HasLength(256);
     builder.Property(u => u.NormalizedEmailAddress).HasLength(256);
     ///builder.HasIndex(u => u.NormalizedEmailAddress).HasDatabaseName("EmailIndex");
 }
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <VendorAttributeValue> builder)
        {
            builder.HasTableName(nameof(VendorAttributeValue));

            builder.Property(value => value.Name).HasLength(400).IsNullable(false);
            builder.Property(value => value.IsPreSelected);
            builder.Property(value => value.DisplayOrder);
            builder.Property(value => value.VendorAttributeId);
        }
示例#28
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <BackInStockSubscription> builder)
        {
            builder.HasTableName(nameof(BackInStockSubscription));

            builder.Property(backinstocksubscription => backinstocksubscription.StoreId);
            builder.Property(backinstocksubscription => backinstocksubscription.ProductId);
            builder.Property(backinstocksubscription => backinstocksubscription.CustomerId);
            builder.Property(backinstocksubscription => backinstocksubscription.CreatedOnUtc);
        }
示例#29
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <MeasureWeight> builder)
        {
            builder.HasTableName(nameof(MeasureWeight));

            builder.Property(weight => weight.Name).HasLength(100).IsNullable(false);
            builder.Property(weight => weight.SystemKeyword).HasLength(100).IsNullable(false);
            builder.Property(weight => weight.Ratio).HasDecimal(18, 8);
            builder.Property(measureweight => measureweight.DisplayOrder);
        }
示例#30
0
        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityMappingBuilder <ProductWarehouseInventory> builder)
        {
            builder.HasTableName(nameof(ProductWarehouseInventory));

            builder.Property(productWarehouseInventory => productWarehouseInventory.ProductId);
            builder.Property(productWarehouseInventory => productWarehouseInventory.WarehouseId);
            builder.Property(productWarehouseInventory => productWarehouseInventory.StockQuantity);
            builder.Property(productWarehouseInventory => productWarehouseInventory.ReservedQuantity);
        }