Initial commit - Auth
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
// using Bogus;
|
||||
// using Domain.Entities;
|
||||
// using Microsoft.EntityFrameworkCore;
|
||||
// using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
// namespace Auth.Domain.Configuration;
|
||||
|
||||
// public class CategoryConfiguration : IEntityTypeConfiguration<Category>
|
||||
// {
|
||||
// private readonly int count;
|
||||
|
||||
// public List<Category> Categories { get; set; }
|
||||
|
||||
// public CategoryConfiguration(int count)
|
||||
// {
|
||||
// this.count = count;
|
||||
// Categories = GenerateCategories(count);
|
||||
// }
|
||||
|
||||
// private List<Category> GenerateCategories(int count)
|
||||
// {
|
||||
|
||||
// var id = 1;
|
||||
// var fakerCategory = new Faker<Category>()
|
||||
// .RuleFor(p => p.Id, f => id++)
|
||||
// .RuleFor(p => p.Name, f => f.Commerce.ProductName())
|
||||
// .RuleFor(p => p.Show, f => true)
|
||||
// .RuleFor(p => p.Description, f => f.Commerce.ProductDescription())
|
||||
// .RuleFor(p => p.Created, f => f.Date.Past(1, DateTime.UtcNow))
|
||||
// .RuleFor(p => p.Language, f => "test")
|
||||
|
||||
// .RuleFor(p => p.PhotoPath, f => f.Image.LoremFlickrUrl(512, 512, "Category Categories"));
|
||||
|
||||
// return fakerCategory.Generate(count);
|
||||
// }
|
||||
|
||||
|
||||
// public void Configure(EntityTypeBuilder<Category> builder)
|
||||
// {
|
||||
// ////builder.HasIndex(category => category.Name).IsUnique();
|
||||
// //builder.Property(c => c.Name).HasMaxLength(450);
|
||||
// builder.HasData(Categories);
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user