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