UseHiLo
This commit is contained in:
@@ -31,8 +31,7 @@ public class BaseEntityConfiguration<T, TId, TIdType> : IEntityTypeConfiguration
|
|||||||
builder.Property(x => x.Id)
|
builder.Property(x => x.Id)
|
||||||
.HasConversion(
|
.HasConversion(
|
||||||
id => id.Value,
|
id => id.Value,
|
||||||
value => (TId)Activator.CreateInstance(typeof(TId), value)!)
|
value => (TId)Activator.CreateInstance(typeof(TId), value)!);
|
||||||
.ValueGeneratedOnAdd();
|
|
||||||
|
|
||||||
// ❌ UseHiLo را اینجا نزنید، چون هنوز نام جدول مشخص نیست
|
// ❌ UseHiLo را اینجا نزنید، چون هنوز نام جدول مشخص نیست
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Vizhvizh.BuildingBlocks.Domain;
|
using Vizhvizh.BuildingBlocks.Domain;
|
||||||
|
|
||||||
public static class ModelBuilderExtensions
|
public static class ModelBuilderExtensions
|
||||||
{
|
{
|
||||||
public static void AddHiLoSequences(this ModelBuilder modelBuilder)
|
public static void AddHiLoSequences(this ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
var entityTypes = modelBuilder.Model.GetEntityTypes();
|
var entityTypes = modelBuilder.Model.GetEntityTypes().Where(x => !x.IsOwned());
|
||||||
|
|
||||||
foreach (var entityType in entityTypes)
|
foreach (var entityType in entityTypes)
|
||||||
{
|
{
|
||||||
@@ -15,23 +16,21 @@ public static class ModelBuilderExtensions
|
|||||||
var keyProperty = primaryKey.Properties.FirstOrDefault();
|
var keyProperty = primaryKey.Properties.FirstOrDefault();
|
||||||
if (keyProperty == null) continue;
|
if (keyProperty == null) continue;
|
||||||
|
|
||||||
// ✅ استخراج نوع واقعی از TypedIdValueBase
|
|
||||||
var actualKeyType = GetUnderlyingKeyType(keyProperty.ClrType);
|
var actualKeyType = GetUnderlyingKeyType(keyProperty.ClrType);
|
||||||
|
|
||||||
// فقط برای int و long
|
|
||||||
if (actualKeyType == typeof(int) || actualKeyType == typeof(long))
|
if (actualKeyType == typeof(int) || actualKeyType == typeof(long))
|
||||||
{
|
{
|
||||||
var tableName = entityType.GetTableName();
|
var tableName = entityType.GetTableName();
|
||||||
var sequenceName = GetSequenceName(tableName ?? entityType.Name);
|
var sequenceName = GetSequenceName(tableName ?? entityType.Name);
|
||||||
var schema = entityType.GetSchema();
|
var schema = entityType.GetSchema();
|
||||||
|
|
||||||
|
// ایجاد Sequence
|
||||||
if (actualKeyType == typeof(int))
|
if (actualKeyType == typeof(int))
|
||||||
{
|
{
|
||||||
modelBuilder.HasSequence<int>(sequenceName, schema)
|
modelBuilder.HasSequence<int>(sequenceName, schema)
|
||||||
.StartsAt(1)
|
.StartsAt(1)
|
||||||
.IncrementsBy(1);
|
.IncrementsBy(1);
|
||||||
}
|
}
|
||||||
else if (actualKeyType == typeof(long))
|
else
|
||||||
{
|
{
|
||||||
modelBuilder.HasSequence<long>(sequenceName, schema)
|
modelBuilder.HasSequence<long>(sequenceName, schema)
|
||||||
.StartsAt(1)
|
.StartsAt(1)
|
||||||
@@ -39,38 +38,14 @@ public static class ModelBuilderExtensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
keyProperty.SetHiLoSequenceName(sequenceName);
|
keyProperty.SetHiLoSequenceName(sequenceName);
|
||||||
|
keyProperty.SetHiLoSequenceSchema(schema);
|
||||||
|
|
||||||
|
keyProperty.SetValueGenerationStrategy(
|
||||||
|
SqlServerValueGenerationStrategy.SequenceHiLo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//public static void UseHiLoForEntities(this ModelBuilder modelBuilder)
|
|
||||||
//{
|
|
||||||
// var entityTypes = modelBuilder.Model.GetEntityTypes();
|
|
||||||
|
|
||||||
// foreach (var entityType in entityTypes)
|
|
||||||
// {
|
|
||||||
// var primaryKey = entityType.FindPrimaryKey();
|
|
||||||
// if (primaryKey == null) continue;
|
|
||||||
|
|
||||||
// var keyProperty = primaryKey.Properties.FirstOrDefault();
|
|
||||||
// if (keyProperty == null) continue;
|
|
||||||
|
|
||||||
// // ✅ از همان متد استفاده کنید
|
|
||||||
// var actualKeyType = GetUnderlyingKeyType(keyProperty.ClrType);
|
|
||||||
|
|
||||||
// if (actualKeyType == typeof(int) || actualKeyType == typeof(long))
|
|
||||||
// {
|
|
||||||
// var tableName = entityType.GetTableName();
|
|
||||||
// var sequenceName = GetSequenceName(tableName ?? entityType.Name);
|
|
||||||
|
|
||||||
// // تنظیم Hi-Lo روی Property
|
|
||||||
// keyProperty.SetHiLoSequenceName(sequenceName);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// استخراج نوع اصلی از TypedIdValueBase
|
/// استخراج نوع اصلی از TypedIdValueBase
|
||||||
/// پشتیبانی از:
|
/// پشتیبانی از:
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using Vizhvizh.BuildingBlocks.Infrastructure;
|
||||||
|
using Vizhvizh.GoldGallery.ApplicationContract.Commands;
|
||||||
|
|
||||||
|
namespace Vizhvizh.GoldGallery.Api.Controllers;
|
||||||
|
|
||||||
|
[ApiController]
|
||||||
|
[Route("api/[controller]/[action]")]
|
||||||
|
public class CategoryController(IExecutor executor) : ControllerBase
|
||||||
|
{
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<ActionResult> Create([FromBody] CreateCategoryCommand request, CancellationToken cancellationToken)
|
||||||
|
{
|
||||||
|
await executor.Execute(request, cancellationToken);
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
-5
@@ -2,17 +2,18 @@
|
|||||||
using Vizhvizh.GoldGallery.ApplicationContract.Commands;
|
using Vizhvizh.GoldGallery.ApplicationContract.Commands;
|
||||||
using Vizhvizh.GoldGallery.Domain.Products.Entities;
|
using Vizhvizh.GoldGallery.Domain.Products.Entities;
|
||||||
using Vizhvizh.GoldGallery.Domain.Products.Repositories;
|
using Vizhvizh.GoldGallery.Domain.Products.Repositories;
|
||||||
|
using Vizhvizh.GoldGallery.Domain.Products.ValuesObjects;
|
||||||
|
|
||||||
namespace Vizhvizh.GoldGallery.Application.CommandHandlers.Categories;
|
namespace Vizhvizh.GoldGallery.Application.CommandHandlers.Categories;
|
||||||
|
|
||||||
public class CreateCategoryCommandHandler(ICategoryRepository categoryRepository) : ICommandHandler<CreateCategoryCommand>
|
public class CreateCategoryCommandHandler(ICategoryRepository categoryRepository) : ICommandHandler<CreateCategoryCommand>
|
||||||
{
|
{
|
||||||
public Task Handle(CreateCategoryCommand request, CancellationToken cancellationToken)
|
public async Task Handle(CreateCategoryCommand request, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
//var category = Category.CreateNew(request.Title,
|
var category = Category.CreateNew(request.Title,
|
||||||
// request.Description,
|
request.Description,
|
||||||
// request.Image)
|
request.Image, CategoryPath.CreateNew("/1/"));
|
||||||
|
|
||||||
throw new Exception();
|
await categoryRepository.AddAsync(category, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,14 +29,13 @@ public class Category : Entity<CategoryId>
|
|||||||
DescriptionVO description,
|
DescriptionVO description,
|
||||||
CategoryImage image,
|
CategoryImage image,
|
||||||
CategoryPath path,
|
CategoryPath path,
|
||||||
CategoryId? parentId = null,
|
CategoryId? parentId = null)
|
||||||
CategoryPath? parentPath = null)
|
|
||||||
{
|
{
|
||||||
_title = title;
|
_title = title;
|
||||||
_description = description;
|
_description = description;
|
||||||
_image = image;
|
_image = image;
|
||||||
_parentId = parentId;
|
_parentId = parentId;
|
||||||
//_path = CategoryPath.CreatePath(parentPath, ;
|
_path = path;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,10 +43,9 @@ public class Category : Entity<CategoryId>
|
|||||||
DescriptionVO description,
|
DescriptionVO description,
|
||||||
CategoryImage image,
|
CategoryImage image,
|
||||||
CategoryPath path,
|
CategoryPath path,
|
||||||
CategoryId? parentId = null,
|
CategoryId? parentId = null)
|
||||||
CategoryPath? parentPath = null)
|
|
||||||
{
|
{
|
||||||
return new Category(title, description, image, path, parentId, parentPath);
|
return new Category(title, description, image, path, parentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TitleVO Title => _title;
|
public TitleVO Title => _title;
|
||||||
|
|||||||
@@ -17,4 +17,10 @@ public class CategoryImage : ValueObject
|
|||||||
=> new CategoryImage(value);
|
=> new CategoryImage(value);
|
||||||
|
|
||||||
public string Value { get; init; }
|
public string Value { get; init; }
|
||||||
|
|
||||||
|
public static implicit operator CategoryImage?(string? value)
|
||||||
|
=> string.IsNullOrWhiteSpace(value) ? null : new(value);
|
||||||
|
|
||||||
|
public static implicit operator string(CategoryImage value)
|
||||||
|
=> value.Value;
|
||||||
}
|
}
|
||||||
|
|||||||
+48
-80
@@ -12,7 +12,7 @@ using Vizhvizh.GoldGallery.Infrastructure.EF;
|
|||||||
namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(GoldGalleryDbContext))]
|
[DbContext(typeof(GoldGalleryDbContext))]
|
||||||
[Migration("20260422161848_initial")]
|
[Migration("20260422164946_initial")]
|
||||||
partial class initial
|
partial class initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -55,10 +55,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Members", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -90,10 +89,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Categories");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Categories", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -139,10 +137,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Products", "GoldGallery");
|
||||||
|
|
||||||
b.Property<long?>("CategoryId")
|
b.Property<long?>("CategoryId")
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
@@ -184,10 +181,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_ProductVariants", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -214,10 +210,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductSpecifications");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_ProductSpecifications", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -253,9 +248,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None)
|
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Managements");
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Managements", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -277,10 +272,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("int")
|
.HasColumnType("int");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ShippingMethods");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<int>("Id"), "Sequence_ShippingMethods", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -317,10 +311,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Shops", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -363,10 +356,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Sliders", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -393,10 +385,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Resources");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Resources", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -435,10 +426,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("int")
|
.HasColumnType("int");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Roles");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<int>("Id"), "Sequence_Roles", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -475,10 +465,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_RoleResources");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_RoleResources", "GoldGallery");
|
||||||
|
|
||||||
b.Property<int>("AccessLevel")
|
b.Property<int>("AccessLevel")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
@@ -508,10 +497,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Users");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Users", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -541,8 +529,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberAvatar", "Avatar", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberAvatar", "Avatar", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("MemberId")
|
b1.Property<long>("MemberId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -561,8 +548,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberFullName", "FullName", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberFullName", "FullName", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("MemberId")
|
b1.Property<long>("MemberId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
b1.Property<string>("FirstName")
|
b1.Property<string>("FirstName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -587,8 +573,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberNationalCode", "NationalCode", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberNationalCode", "NationalCode", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("MemberId")
|
b1.Property<long>("MemberId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(10)
|
||||||
@@ -621,8 +606,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CategoryImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CategoryImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("CategoryId")
|
b1.Property<long>("CategoryId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Categories");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -655,8 +639,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<byte>("Score")
|
b1.Property<byte>("Score")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -680,8 +663,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CraftsmanshipFee", "CraftsmanshipFee", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CraftsmanshipFee", "CraftsmanshipFee", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<decimal>("Value")
|
b1.Property<decimal>("Value")
|
||||||
.HasColumnType("decimal(4,2)")
|
.HasColumnType("decimal(4,2)")
|
||||||
@@ -698,8 +680,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductCondition", "ProductCondition", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductCondition", "ProductCondition", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<int>("Value")
|
b1.Property<int>("Value")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
@@ -716,8 +697,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductFile3D", "File3D", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductFile3D", "File3D", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
@@ -735,8 +715,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -776,8 +755,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<byte>("Score")
|
b1.Property<byte>("Score")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -802,8 +780,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.GoldWeight", "Weight", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.GoldWeight", "Weight", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<decimal>("Value")
|
b1.Property<decimal>("Value")
|
||||||
.HasColumnType("decimal(7,3)")
|
.HasColumnType("decimal(7,3)")
|
||||||
@@ -820,8 +797,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductQuantity", "Quantity", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductQuantity", "Quantity", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<double>("Value")
|
b1.Property<double>("Value")
|
||||||
.HasColumnType("float")
|
.HasColumnType("float")
|
||||||
@@ -838,8 +814,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductVariantGallery", "Gallery", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductVariantGallery", "Gallery", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<string>("Values")
|
b1.Property<string>("Values")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -896,8 +871,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShippingMethodImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShippingMethodImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<int>("ShippingMethodId")
|
b1.Property<int>("ShippingMethodId")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ShippingMethods");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -922,8 +896,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopBusinessLicense", "BusinessLicense", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopBusinessLicense", "BusinessLicense", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ShopId")
|
b1.Property<long>("ShopId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
b1.Property<string>("Code")
|
b1.Property<string>("Code")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -948,8 +921,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLocation", "Location", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLocation", "Location", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ShopId")
|
b1.Property<long>("ShopId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
b1.Property<string>("Address")
|
b1.Property<string>("Address")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -990,8 +962,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLogo", "Logo", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLogo", "Logo", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ShopId")
|
b1.Property<long>("ShopId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
@@ -1021,8 +992,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("SliderId")
|
b1.Property<long>("SliderId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -1041,8 +1011,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderKey", "Key", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderKey", "Key", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("SliderId")
|
b1.Property<long>("SliderId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
b1.Property<int>("Type")
|
b1.Property<int>("Type")
|
||||||
.HasColumnType("INT")
|
.HasColumnType("INT")
|
||||||
@@ -1065,8 +1034,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderUrl", "Url", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderUrl", "Url", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("SliderId")
|
b1.Property<long>("SliderId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
+12
-24
@@ -71,8 +71,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
Image = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
Image = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
||||||
@@ -98,8 +97,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
|
||||||
ModuleName = table.Column<int>(type: "int", nullable: false),
|
ModuleName = table.Column<int>(type: "int", nullable: false),
|
||||||
@@ -117,8 +115,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
OwnerId = table.Column<long>(type: "bigint", nullable: false),
|
OwnerId = table.Column<long>(type: "bigint", nullable: false),
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
@@ -141,8 +138,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
Image = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
Image = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
||||||
Url = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
Url = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
||||||
@@ -161,8 +157,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
MemberId = table.Column<long>(type: "bigint", nullable: false),
|
MemberId = table.Column<long>(type: "bigint", nullable: false),
|
||||||
RowVersion = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: false),
|
RowVersion = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: false),
|
||||||
CreateOn = table.Column<DateTime>(type: "datetime2", nullable: false, defaultValueSql: "GETDATE()")
|
CreateOn = table.Column<DateTime>(type: "datetime2", nullable: false, defaultValueSql: "GETDATE()")
|
||||||
@@ -198,8 +193,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
FirstName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
FirstName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
LastName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
LastName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
PhoneNumber = table.Column<string>(type: "nvarchar(11)", maxLength: 11, nullable: false),
|
PhoneNumber = table.Column<string>(type: "nvarchar(11)", maxLength: 11, nullable: false),
|
||||||
@@ -225,8 +219,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
ProductCondition = table.Column<int>(type: "int", nullable: false),
|
ProductCondition = table.Column<int>(type: "int", nullable: false),
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
|
||||||
@@ -262,8 +255,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<int>(type: "int", nullable: false)
|
Id = table.Column<int>(type: "int", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
|
||||||
Image = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
Image = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
||||||
@@ -287,8 +279,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<int>(type: "int", nullable: false)
|
Id = table.Column<int>(type: "int", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
ResourceId = table.Column<long>(type: "bigint", nullable: true),
|
ResourceId = table.Column<long>(type: "bigint", nullable: true),
|
||||||
UserId = table.Column<long>(type: "bigint", nullable: true),
|
UserId = table.Column<long>(type: "bigint", nullable: true),
|
||||||
@@ -317,8 +308,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: false),
|
||||||
ItemValues = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
ItemValues = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
ProductId = table.Column<long>(type: "bigint", nullable: true),
|
ProductId = table.Column<long>(type: "bigint", nullable: true),
|
||||||
@@ -341,8 +331,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
Score = table.Column<byte>(type: "TINYINT", nullable: false, defaultValue: (byte)0),
|
Score = table.Column<byte>(type: "TINYINT", nullable: false, defaultValue: (byte)0),
|
||||||
TotalVoters = table.Column<int>(type: "INT", nullable: false, defaultValue: 0),
|
TotalVoters = table.Column<int>(type: "INT", nullable: false, defaultValue: 0),
|
||||||
Quantity = table.Column<double>(type: "float", nullable: false),
|
Quantity = table.Column<double>(type: "float", nullable: false),
|
||||||
@@ -368,8 +357,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
schema: "GoldGallery",
|
schema: "GoldGallery",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
Id = table.Column<long>(type: "bigint", nullable: false),
|
||||||
.Annotation("SqlServer:Identity", "1, 1"),
|
|
||||||
AccessLevel = table.Column<int>(type: "int", nullable: false),
|
AccessLevel = table.Column<int>(type: "int", nullable: false),
|
||||||
RoleId = table.Column<int>(type: "int", nullable: true),
|
RoleId = table.Column<int>(type: "int", nullable: true),
|
||||||
RowVersion = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: false),
|
RowVersion = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: false),
|
||||||
+47
-79
@@ -52,10 +52,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Members", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -87,10 +86,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Categories");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Categories", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -136,10 +134,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Products", "GoldGallery");
|
||||||
|
|
||||||
b.Property<long?>("CategoryId")
|
b.Property<long?>("CategoryId")
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
@@ -181,10 +178,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_ProductVariants", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -211,10 +207,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductSpecifications");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_ProductSpecifications", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -250,9 +245,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None)
|
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Managements");
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Managements", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -274,10 +269,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("int")
|
.HasColumnType("int");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ShippingMethods");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<int>("Id"), "Sequence_ShippingMethods", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -314,10 +308,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Shops", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -360,10 +353,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Sliders", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -390,10 +382,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Resources");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Resources", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -432,10 +423,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("int")
|
.HasColumnType("int");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Roles");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<int>("Id"), "Sequence_Roles", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -472,10 +462,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_RoleResources");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_RoleResources", "GoldGallery");
|
||||||
|
|
||||||
b.Property<int>("AccessLevel")
|
b.Property<int>("AccessLevel")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
@@ -505,10 +494,9 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Users");
|
|
||||||
|
|
||||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
SqlServerPropertyBuilderExtensions.UseHiLo(b.Property<long>("Id"), "Sequence_Users", "GoldGallery");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateOn")
|
b.Property<DateTime>("CreateOn")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -538,8 +526,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberAvatar", "Avatar", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberAvatar", "Avatar", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("MemberId")
|
b1.Property<long>("MemberId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -558,8 +545,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberFullName", "FullName", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberFullName", "FullName", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("MemberId")
|
b1.Property<long>("MemberId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
b1.Property<string>("FirstName")
|
b1.Property<string>("FirstName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -584,8 +570,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberNationalCode", "NationalCode", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Members.ValuesObjects.MemberNationalCode", "NationalCode", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("MemberId")
|
b1.Property<long>("MemberId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Members");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(10)
|
||||||
@@ -618,8 +603,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CategoryImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CategoryImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("CategoryId")
|
b1.Property<long>("CategoryId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Categories");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -652,8 +636,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<byte>("Score")
|
b1.Property<byte>("Score")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -677,8 +660,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CraftsmanshipFee", "CraftsmanshipFee", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.CraftsmanshipFee", "CraftsmanshipFee", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<decimal>("Value")
|
b1.Property<decimal>("Value")
|
||||||
.HasColumnType("decimal(4,2)")
|
.HasColumnType("decimal(4,2)")
|
||||||
@@ -695,8 +677,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductCondition", "ProductCondition", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductCondition", "ProductCondition", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<int>("Value")
|
b1.Property<int>("Value")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
@@ -713,8 +694,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductFile3D", "File3D", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductFile3D", "File3D", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
@@ -732,8 +712,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductId")
|
b1.Property<long>("ProductId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Products");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -773,8 +752,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductScore", "Score", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<byte>("Score")
|
b1.Property<byte>("Score")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
@@ -799,8 +777,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.GoldWeight", "Weight", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.GoldWeight", "Weight", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<decimal>("Value")
|
b1.Property<decimal>("Value")
|
||||||
.HasColumnType("decimal(7,3)")
|
.HasColumnType("decimal(7,3)")
|
||||||
@@ -817,8 +794,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductQuantity", "Quantity", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductQuantity", "Quantity", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<double>("Value")
|
b1.Property<double>("Value")
|
||||||
.HasColumnType("float")
|
.HasColumnType("float")
|
||||||
@@ -835,8 +811,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductVariantGallery", "Gallery", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Products.ValuesObjects.ProductVariantGallery", "Gallery", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ProductVariantId")
|
b1.Property<long>("ProductVariantId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ProductVariants");
|
|
||||||
|
|
||||||
b1.Property<string>("Values")
|
b1.Property<string>("Values")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -893,8 +868,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShippingMethodImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShippingMethodImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<int>("ShippingMethodId")
|
b1.Property<int>("ShippingMethodId")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_ShippingMethods");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -919,8 +893,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopBusinessLicense", "BusinessLicense", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopBusinessLicense", "BusinessLicense", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ShopId")
|
b1.Property<long>("ShopId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
b1.Property<string>("Code")
|
b1.Property<string>("Code")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -945,8 +918,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLocation", "Location", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLocation", "Location", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ShopId")
|
b1.Property<long>("ShopId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
b1.Property<string>("Address")
|
b1.Property<string>("Address")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -987,8 +959,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLogo", "Logo", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Shops.ValuesObjects.ShopLogo", "Logo", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("ShopId")
|
b1.Property<long>("ShopId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Shops");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
@@ -1018,8 +989,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderImage", "Image", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderImage", "Image", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("SliderId")
|
b1.Property<long>("SliderId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@@ -1038,8 +1008,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderKey", "Key", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderKey", "Key", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("SliderId")
|
b1.Property<long>("SliderId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
b1.Property<int>("Type")
|
b1.Property<int>("Type")
|
||||||
.HasColumnType("INT")
|
.HasColumnType("INT")
|
||||||
@@ -1062,8 +1031,7 @@ namespace Vizhvizh.GoldGallery.Infrastructure.Migrations
|
|||||||
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderUrl", "Url", b1 =>
|
b.OwnsOne("Vizhvizh.GoldGallery.Domain.Sliders.ValuesObjects.SliderUrl", "Url", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<long>("SliderId")
|
b1.Property<long>("SliderId")
|
||||||
.HasColumnType("bigint")
|
.HasColumnType("bigint");
|
||||||
.HasAnnotation("SqlServer:HiLoSequenceName", "Sequence_Sliders");
|
|
||||||
|
|
||||||
b1.Property<string>("Value")
|
b1.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|||||||
Reference in New Issue
Block a user