32 lines
850 B
C#
32 lines
850 B
C#
// using System;
|
|
// using System.Collections.Generic;
|
|
// using System.Linq;
|
|
// using System.Threading.Tasks;
|
|
// using Domain.Entities;
|
|
// using Microsoft.EntityFrameworkCore;
|
|
// using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
// namespace Auth.Domain.Configuration;
|
|
|
|
// public class ShippingConfiguration : IEntityTypeConfiguration<Shipping>
|
|
// {
|
|
// private List<Shipping> Generate()
|
|
// {
|
|
// return new List<Shipping>()
|
|
// {
|
|
// new Shipping() {Id = 1, ShippingCost = 10, Name ="Standard Shipping - $10"},
|
|
// new Shipping() {Id = 2, ShippingCost = 50, Name ="Fast Shipping - $50"},
|
|
|
|
// };
|
|
|
|
// }
|
|
|
|
// public void Configure(EntityTypeBuilder<Shipping> builder)
|
|
// {
|
|
// builder.HasData(Generate());
|
|
// // builder.HasIndex(u => u.Name).IsUnique();
|
|
// }
|
|
|
|
|
|
// }
|