Compare commits

..

No commits in common. "707fc19b7f05b4579ed9f1ba08143729d4025050" and "d442ed17eeb9979c184a02654a5e80365aca249c" have entirely different histories.

16 changed files with 415 additions and 2963 deletions

View File

@ -1 +1 @@
0.4.3.12 0.3.2.11

View File

@ -6,7 +6,8 @@ public class ShippingController : ICarterModule
public virtual void AddRoutes(IEndpointRouteBuilder app) public virtual void AddRoutes(IEndpointRouteBuilder app)
{ {
var group = app.NewVersionedApi("WarehouseShipping") var group = app.NewVersionedApi("WarehouseShipping")
.MapGroup($"api/warehouse/shipping"); .MapGroup($"api/warehouse/shipping")
.RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser());
group.MapGet("", GetAllAsync) group.MapGet("", GetAllAsync)
.WithDisplayName("GetAllShipping") .WithDisplayName("GetAllShipping")
@ -14,19 +15,15 @@ public class ShippingController : ICarterModule
group.MapGet("{id}", GetAsync) group.MapGet("{id}", GetAsync)
.WithDisplayName("GetShipping") .WithDisplayName("GetShipping")
.RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0); .HasApiVersion(1.0);
group.MapPost("", Post) group.MapPost("", Post)
.RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0); .HasApiVersion(1.0);
group.MapPut("", Put) group.MapPut("", Put)
.RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0); .HasApiVersion(1.0);
group.MapDelete("{id}", Delete) group.MapDelete("{id}", Delete)
.RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0); .HasApiVersion(1.0);
} }

View File

@ -6,8 +6,8 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization> <InvariantGlobalization>true</InvariantGlobalization>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyVersion>0.4.3.12</AssemblyVersion> <AssemblyVersion>0.3.2.11</AssemblyVersion>
<FileVersion>0.4.3.12</FileVersion> <FileVersion>0.3.2.11</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -1,18 +1,18 @@
namespace NetinaShop.Domain.CommandQueries.Commands; namespace NetinaShop.Domain.CommandQueries.Commands;
public sealed record CreateShippingCommand ( public sealed record CreateShippingCommand (
string Name, string Title,
string WarehouseName, string WarehouseName,
bool IsExpressShipping, bool IsFastShipping ,
bool IsShipBySeller , bool IsShipBySeller ,
bool IsOriginalWarehouse, bool IsOriginalWarehouse,
double DeliveryCost) : IRequest<ShippingSDto>; double DeliveryCost) : IRequest<ShippingSDto>;
public sealed record UpdateShippingCommand( public sealed record UpdateShippingCommand(
Guid Id, Guid Id,
string Name, string Title,
string WarehouseName, string WarehouseName,
bool IsExpressShipping, bool IsFastShipping,
bool IsShipBySeller, bool IsShipBySeller,
bool IsOriginalWarehouse, bool IsOriginalWarehouse,
double DeliveryCost) : IRequest<bool>; double DeliveryCost) : IRequest<bool>;

View File

@ -10,9 +10,9 @@ public class ProductLDto : BaseDto<ProductLDto,Product>
public string Warranty { get; set; } = string.Empty; public string Warranty { get; set; } = string.Empty;
public bool BeDisplayed { get; set; } public bool BeDisplayed { get; set; }
public bool HasExpressDelivery { get; set; } public bool HasExpressDelivery { get; set; }
public int MaxOrderCount { get; set; }
public double Cost { get; set; } public double Cost { get; set; }
public double PackingCost { get; set; } public double PackingCost { get; set; }
public int MaxOrderCount { get; set; }
public int Stock { get; set; } public int Stock { get; set; }
public Guid BrandId { get; set; } public Guid BrandId { get; set; }
public string BrandName { get; set; } = string.Empty; public string BrandName { get; set; } = string.Empty;

View File

@ -2,10 +2,5 @@
public class ShippingSDto : BaseDto<ShippingSDto,Shipping> public class ShippingSDto : BaseDto<ShippingSDto,Shipping>
{ {
public string Name { get; set; } = string.Empty;
public string WarehouseName { get; set; } = string.Empty;
public bool IsExpressShipping { get; set; }
public bool IsShipBySeller { get; set; }
public bool IsOriginalWarehouse { get; set; }
public double DeliveryCost { get; set; }
} }

View File

@ -9,9 +9,9 @@ public partial class Shipping : ApiEntity
{ {
} }
public Shipping(string name, string warehouseName, bool isExpressShipping, bool isShipBySeller, bool isOriginalWarehouse, double deliveryCost) public Shipping(string title, string warehouseName, bool isExpressShipping, bool isShipBySeller, bool isOriginalWarehouse, double deliveryCost)
{ {
Name = name; Title = title;
WarehouseName = warehouseName; WarehouseName = warehouseName;
IsExpressShipping = isExpressShipping; IsExpressShipping = isExpressShipping;
IsShipBySeller = isShipBySeller; IsShipBySeller = isShipBySeller;
@ -19,7 +19,7 @@ public partial class Shipping : ApiEntity
DeliveryCost = deliveryCost; DeliveryCost = deliveryCost;
} }
public string Name { get; internal set; } = string.Empty; public string Title { get; internal set; } = string.Empty;
public string WarehouseName { get; internal set; } = string.Empty; public string WarehouseName { get; internal set; } = string.Empty;
public bool IsExpressShipping { get; internal set; } public bool IsExpressShipping { get; internal set; }
public bool IsShipBySeller { get; internal set; } public bool IsShipBySeller { get; internal set; }

View File

@ -30,17 +30,7 @@ namespace NetinaShop.Domain.Mappers
HasExpressDelivery = p1.HasExpressDelivery, HasExpressDelivery = p1.HasExpressDelivery,
MaxOrderCount = p1.MaxOrderCount, MaxOrderCount = p1.MaxOrderCount,
BrandId = p1.BrandId, BrandId = p1.BrandId,
Brand = new Brand()
{
Name = p1.BrandName,
Id = p1.BrandId
},
CategoryId = p1.CategoryId, CategoryId = p1.CategoryId,
Category = new ProductCategory()
{
Name = p1.CategoryName,
Id = p1.CategoryId
},
Specifications = funcMain1(p1.Specifications), Specifications = funcMain1(p1.Specifications),
Reviews = funcMain2(p1.Reviews), Reviews = funcMain2(p1.Reviews),
Files = funcMain3(p1.Files), Files = funcMain3(p1.Files),
@ -69,333 +59,318 @@ namespace NetinaShop.Domain.Mappers
result.HasExpressDelivery = p5.HasExpressDelivery; result.HasExpressDelivery = p5.HasExpressDelivery;
result.MaxOrderCount = p5.MaxOrderCount; result.MaxOrderCount = p5.MaxOrderCount;
result.BrandId = p5.BrandId; result.BrandId = p5.BrandId;
result.Brand = funcMain4(new Never(), result.Brand, p5);
result.CategoryId = p5.CategoryId; result.CategoryId = p5.CategoryId;
result.Category = funcMain5(new Never(), result.Category, p5); result.Specifications = funcMain4(p5.Specifications, result.Specifications);
result.Specifications = funcMain6(p5.Specifications, result.Specifications); result.Reviews = funcMain5(p5.Reviews, result.Reviews);
result.Reviews = funcMain7(p5.Reviews, result.Reviews); result.Files = funcMain6(p5.Files, result.Files);
result.Files = funcMain8(p5.Files, result.Files);
result.Id = p5.Id; result.Id = p5.Id;
result.CreatedAt = p5.CreatedAt; result.CreatedAt = p5.CreatedAt;
return result; return result;
} }
public static Expression<Func<ProductLDto, Product>> ProjectToProduct => p17 => new Product() public static Expression<Func<ProductLDto, Product>> ProjectToProduct => p13 => new Product()
{ {
PersianName = p17.PersianName, PersianName = p13.PersianName,
EnglishName = p17.EnglishName, EnglishName = p13.EnglishName,
Summery = p17.Summery, Summery = p13.Summery,
ExpertCheck = p17.ExpertCheck, ExpertCheck = p13.ExpertCheck,
Tags = p17.Tags, Tags = p13.Tags,
Warranty = p17.Warranty, Warranty = p13.Warranty,
Cost = p17.Cost, Cost = p13.Cost,
BeDisplayed = p17.BeDisplayed, BeDisplayed = p13.BeDisplayed,
PackingCost = p17.PackingCost, PackingCost = p13.PackingCost,
Stock = p17.Stock, Stock = p13.Stock,
HasExpressDelivery = p17.HasExpressDelivery, HasExpressDelivery = p13.HasExpressDelivery,
MaxOrderCount = p17.MaxOrderCount, MaxOrderCount = p13.MaxOrderCount,
BrandId = p17.BrandId, BrandId = p13.BrandId,
Brand = new Brand() CategoryId = p13.CategoryId,
Specifications = p13.Specifications.Select<SpecificationSDto, Specification>(p14 => new Specification()
{ {
Name = p17.BrandName, Title = p14.Title,
Id = p17.BrandId Detail = p14.Detail,
}, Value = p14.Value,
CategoryId = p17.CategoryId, IsFeature = p14.IsFeature,
Category = new ProductCategory() ProductId = p14.ProductId,
{ ParentId = (Guid?)p14.ParentId,
Name = p17.CategoryName, Id = p14.Id,
Id = p17.CategoryId CreatedAt = p14.CreatedAt
},
Specifications = p17.Specifications.Select<SpecificationSDto, Specification>(p18 => new Specification()
{
Title = p18.Title,
Detail = p18.Detail,
Value = p18.Value,
IsFeature = p18.IsFeature,
ProductId = p18.ProductId,
ParentId = (Guid?)p18.ParentId,
Id = p18.Id,
CreatedAt = p18.CreatedAt
}).ToList<Specification>(), }).ToList<Specification>(),
Reviews = p17.Reviews.Select<ReviewSDto, Review>(p19 => new Review() Reviews = p13.Reviews.Select<ReviewSDto, Review>(p15 => new Review()
{ {
Title = p19.Title, Title = p15.Title,
Comment = p19.Comment, Comment = p15.Comment,
Rate = p19.Rate, Rate = p15.Rate,
IsBuyer = p19.IsBuyer, IsBuyer = p15.IsBuyer,
ProductId = p19.ProductId, ProductId = p15.ProductId,
UserId = p19.UserId, UserId = p15.UserId,
Id = p19.Id, Id = p15.Id,
CreatedAt = p19.CreatedAt CreatedAt = p15.CreatedAt
}).ToList<Review>(), }).ToList<Review>(),
Files = p17.Files.Select<StorageFileSDto, ProductStorageFile>(p20 => new ProductStorageFile() Files = p13.Files.Select<StorageFileSDto, ProductStorageFile>(p16 => new ProductStorageFile()
{ {
Name = p20.Name, Name = p16.Name,
FileLocation = p20.FileLocation, FileLocation = p16.FileLocation,
FileName = p20.FileName, FileName = p16.FileName,
IsHeader = p20.IsHeader, IsHeader = p16.IsHeader,
IsPrimary = p20.IsPrimary, IsPrimary = p16.IsPrimary,
FileType = p20.FileType, FileType = p16.FileType,
Id = p20.Id, Id = p16.Id,
CreatedAt = p20.CreatedAt CreatedAt = p16.CreatedAt
}).ToList<ProductStorageFile>(), }).ToList<ProductStorageFile>(),
Id = p17.Id, Id = p13.Id,
CreatedAt = p17.CreatedAt CreatedAt = p13.CreatedAt
}; };
public static ProductLDto AdaptToLDto(this Product p21) public static ProductLDto AdaptToLDto(this Product p17)
{ {
return p21 == null ? null : new ProductLDto() return p17 == null ? null : new ProductLDto()
{ {
PersianName = p21.PersianName, PersianName = p17.PersianName,
EnglishName = p21.EnglishName, EnglishName = p17.EnglishName,
Summery = p21.Summery, Summery = p17.Summery,
ExpertCheck = p21.ExpertCheck, ExpertCheck = p17.ExpertCheck,
Tags = p21.Tags, Tags = p17.Tags,
Warranty = p21.Warranty, Warranty = p17.Warranty,
BeDisplayed = p21.BeDisplayed, BeDisplayed = p17.BeDisplayed,
HasExpressDelivery = p21.HasExpressDelivery, HasExpressDelivery = p17.HasExpressDelivery,
Cost = p21.Cost, MaxOrderCount = p17.MaxOrderCount,
PackingCost = p21.PackingCost, Cost = p17.Cost,
MaxOrderCount = p21.MaxOrderCount, PackingCost = p17.PackingCost,
Stock = p21.Stock, Stock = p17.Stock,
BrandId = p21.BrandId, BrandId = p17.BrandId,
BrandName = p21.Brand == null ? null : p21.Brand.Name, BrandName = p17.Brand == null ? null : p17.Brand.Name,
CategoryId = p21.CategoryId, CategoryId = p17.CategoryId,
CategoryName = p21.Category == null ? null : p21.Category.Name, CategoryName = p17.Category == null ? null : p17.Category.Name,
Specifications = funcMain9(p21.Specifications), Specifications = funcMain7(p17.Specifications),
Reviews = funcMain10(p21.Reviews), Reviews = funcMain8(p17.Reviews),
Files = funcMain11(p21.Files), Files = funcMain9(p17.Files),
Id = p21.Id, Id = p17.Id,
CreatedAt = p21.CreatedAt CreatedAt = p17.CreatedAt
}; };
} }
public static ProductLDto AdaptTo(this Product p25, ProductLDto p26) public static ProductLDto AdaptTo(this Product p21, ProductLDto p22)
{ {
if (p25 == null) if (p21 == null)
{ {
return null; return null;
} }
ProductLDto result = p26 ?? new ProductLDto(); ProductLDto result = p22 ?? new ProductLDto();
result.PersianName = p25.PersianName; result.PersianName = p21.PersianName;
result.EnglishName = p25.EnglishName; result.EnglishName = p21.EnglishName;
result.Summery = p25.Summery; result.Summery = p21.Summery;
result.ExpertCheck = p25.ExpertCheck; result.ExpertCheck = p21.ExpertCheck;
result.Tags = p25.Tags; result.Tags = p21.Tags;
result.Warranty = p25.Warranty; result.Warranty = p21.Warranty;
result.BeDisplayed = p25.BeDisplayed; result.BeDisplayed = p21.BeDisplayed;
result.HasExpressDelivery = p25.HasExpressDelivery; result.HasExpressDelivery = p21.HasExpressDelivery;
result.Cost = p25.Cost; result.MaxOrderCount = p21.MaxOrderCount;
result.PackingCost = p25.PackingCost; result.Cost = p21.Cost;
result.MaxOrderCount = p25.MaxOrderCount; result.PackingCost = p21.PackingCost;
result.Stock = p25.Stock; result.Stock = p21.Stock;
result.BrandId = p25.BrandId; result.BrandId = p21.BrandId;
result.BrandName = p25.Brand == null ? null : p25.Brand.Name; result.BrandName = p21.Brand == null ? null : p21.Brand.Name;
result.CategoryId = p25.CategoryId; result.CategoryId = p21.CategoryId;
result.CategoryName = p25.Category == null ? null : p25.Category.Name; result.CategoryName = p21.Category == null ? null : p21.Category.Name;
result.Specifications = funcMain12(p25.Specifications, result.Specifications); result.Specifications = funcMain10(p21.Specifications, result.Specifications);
result.Reviews = funcMain13(p25.Reviews, result.Reviews); result.Reviews = funcMain11(p21.Reviews, result.Reviews);
result.Files = funcMain14(p25.Files, result.Files); result.Files = funcMain12(p21.Files, result.Files);
result.Id = p25.Id; result.Id = p21.Id;
result.CreatedAt = p25.CreatedAt; result.CreatedAt = p21.CreatedAt;
return result; return result;
} }
public static Expression<Func<Product, ProductLDto>> ProjectToLDto => p33 => new ProductLDto() public static Expression<Func<Product, ProductLDto>> ProjectToLDto => p29 => new ProductLDto()
{ {
PersianName = p33.PersianName, PersianName = p29.PersianName,
EnglishName = p33.EnglishName, EnglishName = p29.EnglishName,
Summery = p33.Summery, Summery = p29.Summery,
ExpertCheck = p33.ExpertCheck, ExpertCheck = p29.ExpertCheck,
Tags = p33.Tags, Tags = p29.Tags,
Warranty = p33.Warranty, Warranty = p29.Warranty,
BeDisplayed = p33.BeDisplayed, BeDisplayed = p29.BeDisplayed,
HasExpressDelivery = p33.HasExpressDelivery, HasExpressDelivery = p29.HasExpressDelivery,
Cost = p33.Cost, MaxOrderCount = p29.MaxOrderCount,
PackingCost = p33.PackingCost, Cost = p29.Cost,
MaxOrderCount = p33.MaxOrderCount, PackingCost = p29.PackingCost,
Stock = p33.Stock, Stock = p29.Stock,
BrandId = p33.BrandId, BrandId = p29.BrandId,
BrandName = p33.Brand == null ? null : p33.Brand.Name, BrandName = p29.Brand.Name,
CategoryId = p33.CategoryId, CategoryId = p29.CategoryId,
CategoryName = p33.Category == null ? null : p33.Category.Name, CategoryName = p29.Category.Name,
Specifications = p33.Specifications.Select<Specification, SpecificationSDto>(p34 => new SpecificationSDto() Specifications = p29.Specifications.Select<Specification, SpecificationSDto>(p30 => new SpecificationSDto()
{ {
Title = p34.Title, Title = p30.Title,
Detail = p34.Detail, Detail = p30.Detail,
Value = p34.Value, Value = p30.Value,
IsFeature = p34.IsFeature, IsFeature = p30.IsFeature,
ProductId = p34.ProductId, ProductId = p30.ProductId,
ParentId = p34.ParentId == null ? default(Guid) : (Guid)p34.ParentId, ParentId = p30.ParentId == null ? default(Guid) : (Guid)p30.ParentId,
Id = p34.Id, Id = p30.Id,
CreatedAt = p34.CreatedAt CreatedAt = p30.CreatedAt
}).ToList<SpecificationSDto>(), }).ToList<SpecificationSDto>(),
Reviews = p33.Reviews.Select<Review, ReviewSDto>(p35 => new ReviewSDto() Reviews = p29.Reviews.Select<Review, ReviewSDto>(p31 => new ReviewSDto()
{ {
Title = p35.Title, Title = p31.Title,
Comment = p35.Comment, Comment = p31.Comment,
Rate = p35.Rate, Rate = p31.Rate,
IsBuyer = p35.IsBuyer, IsBuyer = p31.IsBuyer,
ProductId = p35.ProductId, ProductId = p31.ProductId,
UserId = p35.UserId, UserId = p31.UserId,
Id = p35.Id, Id = p31.Id,
CreatedAt = p35.CreatedAt CreatedAt = p31.CreatedAt
}).ToList<ReviewSDto>(), }).ToList<ReviewSDto>(),
Files = p33.Files.Select<ProductStorageFile, StorageFileSDto>(p36 => new StorageFileSDto() Files = p29.Files.Select<ProductStorageFile, StorageFileSDto>(p32 => new StorageFileSDto()
{ {
Name = p36.Name, Name = p32.Name,
FileLocation = p36.FileLocation, FileLocation = p32.FileLocation,
FileName = p36.FileName, FileName = p32.FileName,
IsHeader = p36.IsHeader, IsHeader = p32.IsHeader,
IsPrimary = p36.IsPrimary, IsPrimary = p32.IsPrimary,
FileType = p36.FileType, FileType = p32.FileType,
Id = p36.Id Id = p32.Id
}).ToList<StorageFileSDto>(), }).ToList<StorageFileSDto>(),
Id = p33.Id, Id = p29.Id,
CreatedAt = p33.CreatedAt CreatedAt = p29.CreatedAt
}; };
public static Product AdaptToProduct(this ProductSDto p37) public static Product AdaptToProduct(this ProductSDto p33)
{ {
return p37 == null ? null : new Product() return p33 == null ? null : new Product()
{ {
PersianName = p37.PersianName, PersianName = p33.PersianName,
EnglishName = p37.EnglishName, EnglishName = p33.EnglishName,
Summery = p37.Summery, Summery = p33.Summery,
ExpertCheck = p37.ExpertCheck, ExpertCheck = p33.ExpertCheck,
Tags = p37.Tags, Tags = p33.Tags,
Warranty = p37.Warranty, Warranty = p33.Warranty,
Cost = p37.Cost, Cost = p33.Cost,
IsEnable = p37.IsEnable, IsEnable = p33.IsEnable,
BeDisplayed = p37.BeDisplayed, BeDisplayed = p33.BeDisplayed,
PackingCost = p37.PackingCost, PackingCost = p33.PackingCost,
Rate = p37.Rate, Rate = p33.Rate,
ReviewCount = p37.ReviewCount, ReviewCount = p33.ReviewCount,
Viewed = p37.Viewed, Viewed = p33.Viewed,
BrandId = p37.BrandId, BrandId = p33.BrandId,
Brand = new Brand() Brand = new Brand()
{ {
Name = p37.BrandName, Name = p33.BrandName,
Id = p37.BrandId Id = p33.BrandId
}, },
CategoryId = p37.CategoryId, CategoryId = p33.CategoryId,
Category = new ProductCategory() Category = new ProductCategory()
{ {
Name = p37.CategoryName, Name = p33.CategoryName,
Id = p37.CategoryId Id = p33.CategoryId
}, },
Id = p37.Id, Id = p33.Id,
CreatedAt = p37.CreatedAt CreatedAt = p33.CreatedAt
}; };
} }
public static Product AdaptTo(this ProductSDto p38, Product p39) public static Product AdaptTo(this ProductSDto p34, Product p35)
{ {
if (p38 == null) if (p34 == null)
{ {
return null; return null;
} }
Product result = p39 ?? new Product(); Product result = p35 ?? new Product();
result.PersianName = p38.PersianName; result.PersianName = p34.PersianName;
result.EnglishName = p38.EnglishName; result.EnglishName = p34.EnglishName;
result.Summery = p38.Summery; result.Summery = p34.Summery;
result.ExpertCheck = p38.ExpertCheck; result.ExpertCheck = p34.ExpertCheck;
result.Tags = p38.Tags; result.Tags = p34.Tags;
result.Warranty = p38.Warranty; result.Warranty = p34.Warranty;
result.Cost = p38.Cost; result.Cost = p34.Cost;
result.IsEnable = p38.IsEnable; result.IsEnable = p34.IsEnable;
result.BeDisplayed = p38.BeDisplayed; result.BeDisplayed = p34.BeDisplayed;
result.PackingCost = p38.PackingCost; result.PackingCost = p34.PackingCost;
result.Rate = p38.Rate; result.Rate = p34.Rate;
result.ReviewCount = p38.ReviewCount; result.ReviewCount = p34.ReviewCount;
result.Viewed = p38.Viewed; result.Viewed = p34.Viewed;
result.BrandId = p38.BrandId; result.BrandId = p34.BrandId;
result.Brand = funcMain15(new Never(), result.Brand, p38); result.Brand = funcMain13(new Never(), result.Brand, p34);
result.CategoryId = p38.CategoryId; result.CategoryId = p34.CategoryId;
result.Category = funcMain16(new Never(), result.Category, p38); result.Category = funcMain14(new Never(), result.Category, p34);
result.Id = p38.Id; result.Id = p34.Id;
result.CreatedAt = p38.CreatedAt; result.CreatedAt = p34.CreatedAt;
return result; return result;
} }
public static ProductSDto AdaptToSDto(this Product p44) public static ProductSDto AdaptToSDto(this Product p40)
{ {
return p44 == null ? null : new ProductSDto() return p40 == null ? null : new ProductSDto()
{ {
PersianName = p44.PersianName, PersianName = p40.PersianName,
EnglishName = p44.EnglishName, EnglishName = p40.EnglishName,
Summery = p44.Summery, Summery = p40.Summery,
ExpertCheck = p44.ExpertCheck, ExpertCheck = p40.ExpertCheck,
Tags = p44.Tags, Tags = p40.Tags,
Warranty = p44.Warranty, Warranty = p40.Warranty,
Cost = p44.Cost, Cost = p40.Cost,
IsEnable = p44.IsEnable, IsEnable = p40.IsEnable,
BeDisplayed = p44.BeDisplayed, BeDisplayed = p40.BeDisplayed,
PackingCost = p44.PackingCost, PackingCost = p40.PackingCost,
Rate = p44.Rate, Rate = p40.Rate,
ReviewCount = p44.ReviewCount, ReviewCount = p40.ReviewCount,
Viewed = p44.Viewed, Viewed = p40.Viewed,
MainImage = p44.Files.FirstOrDefault<ProductStorageFile>(funcMain17) != null ? p44.Files.FirstOrDefault<ProductStorageFile>(funcMain18).FileLocation : (p44.Files.Count > 0 ? p44.Files.FirstOrDefault<ProductStorageFile>().FileLocation : string.Empty), CategoryId = p40.CategoryId,
CategoryId = p44.CategoryId, BrandId = p40.BrandId,
BrandId = p44.BrandId, BrandName = p40.Brand == null ? null : p40.Brand.Name,
BrandName = p44.Brand == null ? null : p44.Brand.Name, CategoryName = p40.Category == null ? null : p40.Category.Name,
CategoryName = p44.Category == null ? null : p44.Category.Name, Id = p40.Id,
Id = p44.Id, CreatedAt = p40.CreatedAt
CreatedAt = p44.CreatedAt
}; };
} }
public static ProductSDto AdaptTo(this Product p45, ProductSDto p46) public static ProductSDto AdaptTo(this Product p41, ProductSDto p42)
{ {
if (p45 == null) if (p41 == null)
{ {
return null; return null;
} }
ProductSDto result = p46 ?? new ProductSDto(); ProductSDto result = p42 ?? new ProductSDto();
result.PersianName = p45.PersianName; result.PersianName = p41.PersianName;
result.EnglishName = p45.EnglishName; result.EnglishName = p41.EnglishName;
result.Summery = p45.Summery; result.Summery = p41.Summery;
result.ExpertCheck = p45.ExpertCheck; result.ExpertCheck = p41.ExpertCheck;
result.Tags = p45.Tags; result.Tags = p41.Tags;
result.Warranty = p45.Warranty; result.Warranty = p41.Warranty;
result.Cost = p45.Cost; result.Cost = p41.Cost;
result.IsEnable = p45.IsEnable; result.IsEnable = p41.IsEnable;
result.BeDisplayed = p45.BeDisplayed; result.BeDisplayed = p41.BeDisplayed;
result.PackingCost = p45.PackingCost; result.PackingCost = p41.PackingCost;
result.Rate = p45.Rate; result.Rate = p41.Rate;
result.ReviewCount = p45.ReviewCount; result.ReviewCount = p41.ReviewCount;
result.Viewed = p45.Viewed; result.Viewed = p41.Viewed;
result.MainImage = p45.Files.FirstOrDefault<ProductStorageFile>(funcMain17) != null ? p45.Files.FirstOrDefault<ProductStorageFile>(funcMain18).FileLocation : (p45.Files.Count > 0 ? p45.Files.FirstOrDefault<ProductStorageFile>().FileLocation : string.Empty); result.CategoryId = p41.CategoryId;
result.CategoryId = p45.CategoryId; result.BrandId = p41.BrandId;
result.BrandId = p45.BrandId; result.BrandName = p41.Brand == null ? null : p41.Brand.Name;
result.BrandName = p45.Brand == null ? null : p45.Brand.Name; result.CategoryName = p41.Category == null ? null : p41.Category.Name;
result.CategoryName = p45.Category == null ? null : p45.Category.Name; result.Id = p41.Id;
result.Id = p45.Id; result.CreatedAt = p41.CreatedAt;
result.CreatedAt = p45.CreatedAt;
return result; return result;
} }
public static Expression<Func<Product, ProductSDto>> ProjectToSDto => p47 => new ProductSDto() public static Expression<Func<Product, ProductSDto>> ProjectToSDto => p43 => new ProductSDto()
{ {
PersianName = p47.PersianName, PersianName = p43.PersianName,
EnglishName = p47.EnglishName, EnglishName = p43.EnglishName,
Summery = p47.Summery, Summery = p43.Summery,
ExpertCheck = p47.ExpertCheck, ExpertCheck = p43.ExpertCheck,
Tags = p47.Tags, Tags = p43.Tags,
Warranty = p47.Warranty, Warranty = p43.Warranty,
Cost = p47.Cost, Cost = p43.Cost,
IsEnable = p47.IsEnable, IsEnable = p43.IsEnable,
BeDisplayed = p47.BeDisplayed, BeDisplayed = p43.BeDisplayed,
PackingCost = p47.PackingCost, PackingCost = p43.PackingCost,
Rate = p47.Rate, Rate = p43.Rate,
ReviewCount = p47.ReviewCount, ReviewCount = p43.ReviewCount,
Viewed = p47.Viewed, Viewed = p43.Viewed,
MainImage = p47.Files.FirstOrDefault<ProductStorageFile>(f => f.IsPrimary) != null ? p47.Files.FirstOrDefault<ProductStorageFile>(f => f.IsPrimary).FileLocation : (p47.Files.Count > 0 ? p47.Files.FirstOrDefault<ProductStorageFile>().FileLocation : string.Empty), CategoryId = p43.CategoryId,
CategoryId = p47.CategoryId, BrandId = p43.BrandId,
BrandId = p47.BrandId, BrandName = p43.Brand == null ? null : p43.Brand.Name,
BrandName = p47.Brand == null ? null : p47.Brand.Name, CategoryName = p43.Category == null ? null : p43.Category.Name,
CategoryName = p47.Category == null ? null : p47.Category.Name, Id = p43.Id,
Id = p47.Id, CreatedAt = p43.CreatedAt
CreatedAt = p47.CreatedAt
}; };
private static List<Specification> funcMain1(List<SpecificationSDto> p2) private static List<Specification> funcMain1(List<SpecificationSDto> p2)
@ -491,40 +466,20 @@ namespace NetinaShop.Domain.Mappers
} }
private static Brand funcMain4(Never p7, Brand p8, ProductLDto p5) private static List<Specification> funcMain4(List<SpecificationSDto> p7, List<Specification> p8)
{ {
Brand result = p8 ?? new Brand(); if (p7 == null)
result.Name = p5.BrandName;
result.Id = p5.BrandId;
return result;
}
private static ProductCategory funcMain5(Never p9, ProductCategory p10, ProductLDto p5)
{
ProductCategory result = p10 ?? new ProductCategory();
result.Name = p5.CategoryName;
result.Id = p5.CategoryId;
return result;
}
private static List<Specification> funcMain6(List<SpecificationSDto> p11, List<Specification> p12)
{
if (p11 == null)
{ {
return null; return null;
} }
List<Specification> result = new List<Specification>(p11.Count); List<Specification> result = new List<Specification>(p7.Count);
int i = 0; int i = 0;
int len = p11.Count; int len = p7.Count;
while (i < len) while (i < len)
{ {
SpecificationSDto item = p11[i]; SpecificationSDto item = p7[i];
result.Add(item == null ? null : new Specification() result.Add(item == null ? null : new Specification()
{ {
Title = item.Title, Title = item.Title,
@ -542,20 +497,20 @@ namespace NetinaShop.Domain.Mappers
} }
private static List<Review> funcMain7(List<ReviewSDto> p13, List<Review> p14) private static List<Review> funcMain5(List<ReviewSDto> p9, List<Review> p10)
{ {
if (p13 == null) if (p9 == null)
{ {
return null; return null;
} }
List<Review> result = new List<Review>(p13.Count); List<Review> result = new List<Review>(p9.Count);
int i = 0; int i = 0;
int len = p13.Count; int len = p9.Count;
while (i < len) while (i < len)
{ {
ReviewSDto item = p13[i]; ReviewSDto item = p9[i];
result.Add(item == null ? null : new Review() result.Add(item == null ? null : new Review()
{ {
Title = item.Title, Title = item.Title,
@ -573,20 +528,20 @@ namespace NetinaShop.Domain.Mappers
} }
private static List<ProductStorageFile> funcMain8(List<StorageFileSDto> p15, List<ProductStorageFile> p16) private static List<ProductStorageFile> funcMain6(List<StorageFileSDto> p11, List<ProductStorageFile> p12)
{ {
if (p15 == null) if (p11 == null)
{ {
return null; return null;
} }
List<ProductStorageFile> result = new List<ProductStorageFile>(p15.Count); List<ProductStorageFile> result = new List<ProductStorageFile>(p11.Count);
int i = 0; int i = 0;
int len = p15.Count; int len = p11.Count;
while (i < len) while (i < len)
{ {
StorageFileSDto item = p15[i]; StorageFileSDto item = p11[i];
result.Add(item == null ? null : new ProductStorageFile() result.Add(item == null ? null : new ProductStorageFile()
{ {
Name = item.Name, Name = item.Name,
@ -604,20 +559,20 @@ namespace NetinaShop.Domain.Mappers
} }
private static List<SpecificationSDto> funcMain9(List<Specification> p22) private static List<SpecificationSDto> funcMain7(List<Specification> p18)
{ {
if (p22 == null) if (p18 == null)
{ {
return null; return null;
} }
List<SpecificationSDto> result = new List<SpecificationSDto>(p22.Count); List<SpecificationSDto> result = new List<SpecificationSDto>(p18.Count);
int i = 0; int i = 0;
int len = p22.Count; int len = p18.Count;
while (i < len) while (i < len)
{ {
Specification item = p22[i]; Specification item = p18[i];
result.Add(item == null ? null : new SpecificationSDto() result.Add(item == null ? null : new SpecificationSDto()
{ {
Title = item.Title, Title = item.Title,
@ -635,81 +590,81 @@ namespace NetinaShop.Domain.Mappers
} }
private static List<ReviewSDto> funcMain10(List<Review> p23) private static List<ReviewSDto> funcMain8(List<Review> p19)
{
if (p19 == null)
{
return null;
}
List<ReviewSDto> result = new List<ReviewSDto>(p19.Count);
int i = 0;
int len = p19.Count;
while (i < len)
{
Review item = p19[i];
result.Add(item == null ? null : new ReviewSDto()
{
Title = item.Title,
Comment = item.Comment,
Rate = item.Rate,
IsBuyer = item.IsBuyer,
ProductId = item.ProductId,
UserId = item.UserId,
Id = item.Id,
CreatedAt = item.CreatedAt
});
i++;
}
return result;
}
private static List<StorageFileSDto> funcMain9(List<ProductStorageFile> p20)
{
if (p20 == null)
{
return null;
}
List<StorageFileSDto> result = new List<StorageFileSDto>(p20.Count);
int i = 0;
int len = p20.Count;
while (i < len)
{
ProductStorageFile item = p20[i];
result.Add(item == null ? null : new StorageFileSDto()
{
Name = item.Name,
FileLocation = item.FileLocation,
FileName = item.FileName,
IsHeader = item.IsHeader,
IsPrimary = item.IsPrimary,
FileType = item.FileType,
Id = item.Id
});
i++;
}
return result;
}
private static List<SpecificationSDto> funcMain10(List<Specification> p23, List<SpecificationSDto> p24)
{ {
if (p23 == null) if (p23 == null)
{ {
return null; return null;
} }
List<ReviewSDto> result = new List<ReviewSDto>(p23.Count); List<SpecificationSDto> result = new List<SpecificationSDto>(p23.Count);
int i = 0; int i = 0;
int len = p23.Count; int len = p23.Count;
while (i < len) while (i < len)
{ {
Review item = p23[i]; Specification item = p23[i];
result.Add(item == null ? null : new ReviewSDto()
{
Title = item.Title,
Comment = item.Comment,
Rate = item.Rate,
IsBuyer = item.IsBuyer,
ProductId = item.ProductId,
UserId = item.UserId,
Id = item.Id,
CreatedAt = item.CreatedAt
});
i++;
}
return result;
}
private static List<StorageFileSDto> funcMain11(List<ProductStorageFile> p24)
{
if (p24 == null)
{
return null;
}
List<StorageFileSDto> result = new List<StorageFileSDto>(p24.Count);
int i = 0;
int len = p24.Count;
while (i < len)
{
ProductStorageFile item = p24[i];
result.Add(item == null ? null : new StorageFileSDto()
{
Name = item.Name,
FileLocation = item.FileLocation,
FileName = item.FileName,
IsHeader = item.IsHeader,
IsPrimary = item.IsPrimary,
FileType = item.FileType,
Id = item.Id
});
i++;
}
return result;
}
private static List<SpecificationSDto> funcMain12(List<Specification> p27, List<SpecificationSDto> p28)
{
if (p27 == null)
{
return null;
}
List<SpecificationSDto> result = new List<SpecificationSDto>(p27.Count);
int i = 0;
int len = p27.Count;
while (i < len)
{
Specification item = p27[i];
result.Add(item == null ? null : new SpecificationSDto() result.Add(item == null ? null : new SpecificationSDto()
{ {
Title = item.Title, Title = item.Title,
@ -727,20 +682,20 @@ namespace NetinaShop.Domain.Mappers
} }
private static List<ReviewSDto> funcMain13(List<Review> p29, List<ReviewSDto> p30) private static List<ReviewSDto> funcMain11(List<Review> p25, List<ReviewSDto> p26)
{ {
if (p29 == null) if (p25 == null)
{ {
return null; return null;
} }
List<ReviewSDto> result = new List<ReviewSDto>(p29.Count); List<ReviewSDto> result = new List<ReviewSDto>(p25.Count);
int i = 0; int i = 0;
int len = p29.Count; int len = p25.Count;
while (i < len) while (i < len)
{ {
Review item = p29[i]; Review item = p25[i];
result.Add(item == null ? null : new ReviewSDto() result.Add(item == null ? null : new ReviewSDto()
{ {
Title = item.Title, Title = item.Title,
@ -758,20 +713,20 @@ namespace NetinaShop.Domain.Mappers
} }
private static List<StorageFileSDto> funcMain14(List<ProductStorageFile> p31, List<StorageFileSDto> p32) private static List<StorageFileSDto> funcMain12(List<ProductStorageFile> p27, List<StorageFileSDto> p28)
{ {
if (p31 == null) if (p27 == null)
{ {
return null; return null;
} }
List<StorageFileSDto> result = new List<StorageFileSDto>(p31.Count); List<StorageFileSDto> result = new List<StorageFileSDto>(p27.Count);
int i = 0; int i = 0;
int len = p31.Count; int len = p27.Count;
while (i < len) while (i < len)
{ {
ProductStorageFile item = p31[i]; ProductStorageFile item = p27[i];
result.Add(item == null ? null : new StorageFileSDto() result.Add(item == null ? null : new StorageFileSDto()
{ {
Name = item.Name, Name = item.Name,
@ -788,34 +743,24 @@ namespace NetinaShop.Domain.Mappers
} }
private static Brand funcMain15(Never p40, Brand p41, ProductSDto p38) private static Brand funcMain13(Never p36, Brand p37, ProductSDto p34)
{ {
Brand result = p41 ?? new Brand(); Brand result = p37 ?? new Brand();
result.Name = p38.BrandName; result.Name = p34.BrandName;
result.Id = p38.BrandId; result.Id = p34.BrandId;
return result; return result;
} }
private static ProductCategory funcMain16(Never p42, ProductCategory p43, ProductSDto p38) private static ProductCategory funcMain14(Never p38, ProductCategory p39, ProductSDto p34)
{ {
ProductCategory result = p43 ?? new ProductCategory(); ProductCategory result = p39 ?? new ProductCategory();
result.Name = p38.CategoryName; result.Name = p34.CategoryName;
result.Id = p38.CategoryId; result.Id = p34.CategoryId;
return result; return result;
} }
private static bool funcMain17(ProductStorageFile f)
{
return f.IsPrimary;
}
private static bool funcMain18(ProductStorageFile f)
{
return f.IsPrimary;
}
} }
} }

View File

@ -11,12 +11,6 @@ namespace NetinaShop.Domain.Mappers
{ {
return p1 == null ? null : new Shipping() return p1 == null ? null : new Shipping()
{ {
Name = p1.Name,
WarehouseName = p1.WarehouseName,
IsExpressShipping = p1.IsExpressShipping,
IsShipBySeller = p1.IsShipBySeller,
IsOriginalWarehouse = p1.IsOriginalWarehouse,
DeliveryCost = p1.DeliveryCost,
Id = p1.Id, Id = p1.Id,
CreatedAt = p1.CreatedAt CreatedAt = p1.CreatedAt
}; };
@ -29,12 +23,6 @@ namespace NetinaShop.Domain.Mappers
} }
Shipping result = p3 ?? new Shipping(); Shipping result = p3 ?? new Shipping();
result.Name = p2.Name;
result.WarehouseName = p2.WarehouseName;
result.IsExpressShipping = p2.IsExpressShipping;
result.IsShipBySeller = p2.IsShipBySeller;
result.IsOriginalWarehouse = p2.IsOriginalWarehouse;
result.DeliveryCost = p2.DeliveryCost;
result.Id = p2.Id; result.Id = p2.Id;
result.CreatedAt = p2.CreatedAt; result.CreatedAt = p2.CreatedAt;
return result; return result;
@ -44,12 +32,6 @@ namespace NetinaShop.Domain.Mappers
{ {
return p4 == null ? null : new ShippingSDto() return p4 == null ? null : new ShippingSDto()
{ {
Name = p4.Name,
WarehouseName = p4.WarehouseName,
IsExpressShipping = p4.IsExpressShipping,
IsShipBySeller = p4.IsShipBySeller,
IsOriginalWarehouse = p4.IsOriginalWarehouse,
DeliveryCost = p4.DeliveryCost,
Id = p4.Id, Id = p4.Id,
CreatedAt = p4.CreatedAt CreatedAt = p4.CreatedAt
}; };
@ -62,12 +44,6 @@ namespace NetinaShop.Domain.Mappers
} }
ShippingSDto result = p6 ?? new ShippingSDto(); ShippingSDto result = p6 ?? new ShippingSDto();
result.Name = p5.Name;
result.WarehouseName = p5.WarehouseName;
result.IsExpressShipping = p5.IsExpressShipping;
result.IsShipBySeller = p5.IsShipBySeller;
result.IsOriginalWarehouse = p5.IsOriginalWarehouse;
result.DeliveryCost = p5.DeliveryCost;
result.Id = p5.Id; result.Id = p5.Id;
result.CreatedAt = p5.CreatedAt; result.CreatedAt = p5.CreatedAt;
return result; return result;
@ -75,12 +51,6 @@ namespace NetinaShop.Domain.Mappers
} }
public static Expression<Func<Shipping, ShippingSDto>> ProjectToSDto => p7 => new ShippingSDto() public static Expression<Func<Shipping, ShippingSDto>> ProjectToSDto => p7 => new ShippingSDto()
{ {
Name = p7.Name,
WarehouseName = p7.WarehouseName,
IsExpressShipping = p7.IsExpressShipping,
IsShipBySeller = p7.IsShipBySeller,
IsOriginalWarehouse = p7.IsOriginalWarehouse,
DeliveryCost = p7.DeliveryCost,
Id = p7.Id, Id = p7.Id,
CreatedAt = p7.CreatedAt CreatedAt = p7.CreatedAt
}; };

View File

@ -17,13 +17,6 @@ public class MapsterRegister : IRegister
.TwoWays(); .TwoWays();
config.NewConfig<Product, ProductSDto>() config.NewConfig<Product, ProductSDto>()
.Map("MainImage",o=>o.Files.FirstOrDefault(f=>f.IsPrimary) != null ? o.Files.FirstOrDefault(f => f.IsPrimary).FileLocation : o.Files.Count>0 ? o.Files.FirstOrDefault().FileLocation : string.Empty)
.Map("CategoryName", o => o.Category == null ? null : o.Category.Name)
.Map("BrandName", o => o.Brand == null ? null : o.Brand.Name)
.IgnoreNullValues(false)
.TwoWays();
config.NewConfig<Product, ProductLDto>()
.Map("CategoryName", o => o.Category == null ? null : o.Category.Name) .Map("CategoryName", o => o.Category == null ? null : o.Category.Name)
.Map("BrandName", o => o.Brand == null ? null : o.Brand.Name) .Map("BrandName", o => o.Brand == null ? null : o.Brand.Name)
.IgnoreNullValues(false) .IgnoreNullValues(false)

View File

@ -12,7 +12,7 @@ public class CreateShippingCommandHandler : IRequestHandler<CreateShippingComman
} }
public async Task<ShippingSDto> Handle(CreateShippingCommand request, CancellationToken cancellationToken) public async Task<ShippingSDto> Handle(CreateShippingCommand request, CancellationToken cancellationToken)
{ {
var ent = Shipping.Create(request.Name, request.WarehouseName, request.IsExpressShipping, request.IsShipBySeller, var ent = Shipping.Create(request.Title, request.WarehouseName, request.IsFastShipping, request.IsShipBySeller,
request.IsOriginalWarehouse,request.DeliveryCost); request.IsOriginalWarehouse,request.DeliveryCost);
_repositoryWrapper.SetRepository<Shipping>().Add(ent); _repositoryWrapper.SetRepository<Shipping>().Add(ent);
await _repositoryWrapper.SaveChangesAsync(cancellationToken); await _repositoryWrapper.SaveChangesAsync(cancellationToken);

View File

@ -15,8 +15,8 @@ public class GetShippingsQueryHandler : IRequestHandler<GetShippingsQuery,List<S
return await _repositoryWrapper return await _repositoryWrapper
.SetRepository<Shipping>() .SetRepository<Shipping>()
.TableNoTracking.OrderByDescending(b => b.CreatedAt) .TableNoTracking.OrderByDescending(b => b.CreatedAt)
.Skip(request.Page * 20) .Skip(request.Page * 10)
.Take(20) .Take(10)
.Select(ShippingMapper.ProjectToSDto) .Select(ShippingMapper.ProjectToSDto)
.ToListAsync(cancellationToken); .ToListAsync(cancellationToken);
} }

View File

@ -17,7 +17,7 @@ public class UpdateShippingCommandHandler : IRequestHandler<UpdateShippingComman
if (ent == null) if (ent == null)
throw new AppException("Shipping not found", ApiResultStatusCode.NotFound); throw new AppException("Shipping not found", ApiResultStatusCode.NotFound);
var newEnt = Shipping.Create(request.Name, request.WarehouseName, request.IsExpressShipping, request.IsShipBySeller, var newEnt = Shipping.Create(request.Title, request.WarehouseName, request.IsFastShipping, request.IsShipBySeller,
request.IsOriginalWarehouse,request.DeliveryCost); request.IsOriginalWarehouse,request.DeliveryCost);
newEnt.Id = ent.Id; newEnt.Id = ent.Id;
newEnt.CreatedAt = ent.CreatedAt; newEnt.CreatedAt = ent.CreatedAt;

File diff suppressed because it is too large Load Diff

View File

@ -1,930 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NetinaShop.Repository.Migrations
{
/// <inheritdoc />
public partial class EditShippingName : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Title",
schema: "public",
table: "Shippings",
newName: "Name");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "UserFavoriteProducts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "UserFavoriteProducts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "UserFavoriteProducts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "UserAddresses",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "UserAddresses",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "UserAddresses",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "StorageFiles",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "StorageFiles",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "StorageFiles",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Specifications",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Specifications",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Specifications",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Shippings",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Shippings",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Shippings",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Reviews",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Reviews",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Reviews",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Products",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Products",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Products",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "ProductCategories",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "ProductCategories",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "ProductCategories",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Orders",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Orders",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Orders",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "OrderProducts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "OrderProducts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "OrderProducts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "OrderDeliveries",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "OrderDeliveries",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "OrderDeliveries",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Discounts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Discounts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Discounts",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Brands",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Brands",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Brands",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Blogs",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Blogs",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Blogs",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "BlogCategories",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "BlogCategories",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "BlogCategories",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Name",
schema: "public",
table: "Shippings",
newName: "Title");
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "UserFavoriteProducts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "UserFavoriteProducts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "UserFavoriteProducts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "UserAddresses",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "UserAddresses",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "UserAddresses",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "StorageFiles",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "StorageFiles",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "StorageFiles",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Specifications",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Specifications",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Specifications",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Shippings",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Shippings",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Shippings",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Reviews",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Reviews",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Reviews",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Products",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Products",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Products",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "ProductCategories",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "ProductCategories",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "ProductCategories",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Orders",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Orders",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Orders",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "OrderProducts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "OrderProducts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "OrderProducts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "OrderDeliveries",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "OrderDeliveries",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "OrderDeliveries",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Discounts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Discounts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Discounts",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Brands",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Brands",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Brands",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "Blogs",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "Blogs",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "Blogs",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RemovedBy",
schema: "public",
table: "BlogCategories",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ModifiedBy",
schema: "public",
table: "BlogCategories",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreatedBy",
schema: "public",
table: "BlogCategories",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
}
}
}

View File

@ -143,6 +143,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<bool>("IsRemoved") b.Property<bool>("IsRemoved")
@ -155,6 +156,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<int>("ReadingTime") b.Property<int>("ReadingTime")
@ -164,6 +166,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Summery") b.Property<string>("Summery")
@ -195,6 +198,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Description") b.Property<string>("Description")
@ -208,6 +212,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Name") b.Property<string>("Name")
@ -218,6 +223,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.HasKey("Id"); b.HasKey("Id");
@ -235,6 +241,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Description") b.Property<string>("Description")
@ -251,6 +258,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Name") b.Property<string>("Name")
@ -265,6 +273,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.HasKey("Id"); b.HasKey("Id");
@ -292,6 +301,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<long>("DiscountAmount") b.Property<long>("DiscountAmount")
@ -333,6 +343,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<long>("PriceCeiling") b.Property<long>("PriceCeiling")
@ -345,6 +356,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<DateTime>("StartDate") b.Property<DateTime>("StartDate")
@ -375,6 +387,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<double>("DeliveryPrice") b.Property<double>("DeliveryPrice")
@ -403,6 +416,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<DateTime>("OrderAt") b.Property<DateTime>("OrderAt")
@ -427,6 +441,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<double>("ServicePrice") b.Property<double>("ServicePrice")
@ -467,6 +482,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<double>("DeliveryCost") b.Property<double>("DeliveryCost")
@ -479,6 +495,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("OrderId") b.Property<Guid>("OrderId")
@ -500,6 +517,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("ShippingId") b.Property<Guid>("ShippingId")
@ -527,6 +545,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<bool>("IsRemoved") b.Property<bool>("IsRemoved")
@ -536,6 +555,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("OrderId") b.Property<Guid>("OrderId")
@ -566,6 +586,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.HasKey("Id"); b.HasKey("Id");
@ -587,6 +608,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Description") b.Property<string>("Description")
@ -603,6 +625,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Name") b.Property<string>("Name")
@ -616,6 +639,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.HasKey("Id"); b.HasKey("Id");
@ -647,6 +671,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("EnglishName") b.Property<string>("EnglishName")
@ -673,6 +698,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<double>("PackingCost") b.Property<double>("PackingCost")
@ -689,6 +715,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<int>("ReviewCount") b.Property<int>("ReviewCount")
@ -735,6 +762,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<bool>("IsBuyer") b.Property<bool>("IsBuyer")
@ -750,6 +778,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("ProductId") b.Property<Guid>("ProductId")
@ -762,6 +791,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Title") b.Property<string>("Title")
@ -790,6 +820,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Detail") b.Property<string>("Detail")
@ -806,6 +837,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid?>("ParentId") b.Property<Guid?>("ParentId")
@ -818,6 +850,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Title") b.Property<string>("Title")
@ -847,6 +880,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Discriminator") b.Property<string>("Discriminator")
@ -878,6 +912,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("Name") b.Property<string>("Name")
@ -888,6 +923,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.HasKey("Id"); b.HasKey("Id");
@ -1038,6 +1074,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<bool>("IsRemoved") b.Property<bool>("IsRemoved")
@ -1053,6 +1090,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
@ -1071,6 +1109,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("UserId") b.Property<Guid>("UserId")
@ -1093,6 +1132,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<bool>("IsRemoved") b.Property<bool>("IsRemoved")
@ -1102,6 +1142,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("ProductId") b.Property<Guid>("ProductId")
@ -1111,6 +1152,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<Guid>("UserId") b.Property<Guid>("UserId")
@ -1135,6 +1177,7 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("CreatedBy") b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<double>("DeliveryCost") b.Property<double>("DeliveryCost")
@ -1156,9 +1199,6 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("ModifiedBy") b.Property<string>("ModifiedBy")
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasColumnType("text"); .HasColumnType("text");
@ -1166,6 +1206,11 @@ namespace NetinaShop.Repository.Migrations
.HasColumnType("timestamp without time zone"); .HasColumnType("timestamp without time zone");
b.Property<string>("RemovedBy") b.Property<string>("RemovedBy")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Title")
.IsRequired()
.HasColumnType("text"); .HasColumnType("text");
b.Property<string>("WarehouseName") b.Property<string>("WarehouseName")