Phone, Fax

This commit is contained in:
Sedat ÖZTÜRK 2025-11-03 17:57:30 +03:00
parent 53a5464445
commit aba197599c
20 changed files with 141 additions and 177 deletions

View file

@ -22,9 +22,9 @@ public class CreateUpdateTenantInput
public string Address1 { get; set; } public string Address1 { get; set; }
public string Address2 { get; set; } public string Address2 { get; set; }
public string PostalCode { get; set; } public string PostalCode { get; set; }
public string Phone { get; set; } public long Phone { get; set; }
public string Mobile { get; set; } public long Mobile { get; set; }
public string Fax { get; set; } public long Fax { get; set; }
public string Email { get; set; } public string Email { get; set; }
public string Website { get; set; } public string Website { get; set; }
public string MenuGroup { get; set; } public string MenuGroup { get; set; }

View file

@ -11,7 +11,7 @@ public class CreateUpdateBlogPostDto
public string ContentTr { get; set; } public string ContentTr { get; set; }
public string ContentEn { get; set; } public string ContentEn { get; set; }
public string Summary { get; set; } public string Summary { get; set; }
public string ReadTime { get; set; } public DateTime ReadTime { get; set; }
public string CoverImage { get; set; } public string CoverImage { get; set; }
public Guid CategoryId { get; set; } public Guid CategoryId { get; set; }
public List<string> Tags { get; set; } public List<string> Tags { get; set; }

View file

@ -19,9 +19,9 @@ public class CustomTenantDto
public string Address1 { get; set; } public string Address1 { get; set; }
public string Address2 { get; set; } public string Address2 { get; set; }
public string PostalCode { get; set; } public string PostalCode { get; set; }
public string Phone { get; set; } public long Phone { get; set; }
public string Mobile { get; set; } public long Mobile { get; set; }
public string Fax { get; set; } public long Fax { get; set; }
public string Email { get; set; } public string Email { get; set; }
public string Website { get; set; } public string Website { get; set; }
public string MenuGroup { get; set; } public string MenuGroup { get; set; }

View file

@ -326,7 +326,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
new() { new() {
ListFormCode = formBank.ListFormCode, ListFormCode = formBank.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 150, Width = 150,
ListOrderNo = 11, ListOrderNo = 11,
@ -636,7 +636,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
new() { new() {
ListFormCode = listFormBank.ListFormCode, ListFormCode = listFormBank.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 150, Width = 150,
ListOrderNo = 11, ListOrderNo = 11,

View file

@ -1124,7 +1124,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
RoleId = null, RoleId = null,
UserId = null, UserId = null,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "PhoneNumber", FieldName = "PhoneNumber",
Width = 150, Width = 150,
ListOrderNo = 5, ListOrderNo = 5,
@ -2978,7 +2978,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormPurchaseOrder.ListFormCode, ListFormCode = listFormPurchaseOrder.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 11, ListOrderNo = 11,
@ -3517,7 +3517,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormBlogPosts.ListFormCode, ListFormCode = listFormBlogPosts.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.DateTime,
FieldName = "ReadTime", FieldName = "ReadTime",
Width = 80, Width = 80,
ListOrderNo = 6, ListOrderNo = 6,
@ -3629,7 +3629,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormBlogPosts.ListFormCode, ListFormCode = listFormBlogPosts.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.DateTime, SourceDbType = DbType.String,
FieldName = "ContentTr", FieldName = "ContentTr",
Width = 120, Width = 120,
ListOrderNo = 11, ListOrderNo = 11,
@ -3644,7 +3644,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormBlogPosts.ListFormCode, ListFormCode = listFormBlogPosts.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.DateTime, SourceDbType = DbType.String,
FieldName = "ContentEn", FieldName = "ContentEn",
Width = 120, Width = 120,
ListOrderNo = 12, ListOrderNo = 12,
@ -3804,7 +3804,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormDemo.ListFormCode, ListFormCode = listFormDemo.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 5, ListOrderNo = 5,
@ -3996,7 +3996,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormContact.ListFormCode, ListFormCode = listFormContact.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 150, Width = 150,
ListOrderNo = 3, ListOrderNo = 3,
@ -6097,7 +6097,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormPsychologist.ListFormCode, ListFormCode = listFormPsychologist.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 150, Width = 150,
ListOrderNo = 3, ListOrderNo = 3,
@ -6373,7 +6373,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormLawyer.ListFormCode, ListFormCode = listFormLawyer.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone1", FieldName = "Phone1",
Width = 150, Width = 150,
ListOrderNo = 8, ListOrderNo = 8,
@ -6388,7 +6388,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormLawyer.ListFormCode, ListFormCode = listFormLawyer.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone2", FieldName = "Phone2",
Width = 150, Width = 150,
ListOrderNo = 9, ListOrderNo = 9,
@ -6403,7 +6403,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormLawyer.ListFormCode, ListFormCode = listFormLawyer.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone3", FieldName = "Phone3",
Width = 150, Width = 150,
ListOrderNo = 10, ListOrderNo = 10,
@ -6418,7 +6418,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormLawyer.ListFormCode, ListFormCode = listFormLawyer.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone4", FieldName = "Phone4",
Width = 150, Width = 150,
ListOrderNo = 11, ListOrderNo = 11,
@ -6433,7 +6433,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
{ {
ListFormCode = listFormLawyer.ListFormCode, ListFormCode = listFormLawyer.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Fax", FieldName = "Fax",
Width = 150, Width = 150,
ListOrderNo = 12, ListOrderNo = 12,

View file

@ -1524,7 +1524,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
new() { new() {
ListFormCode = listFormCostCenter.ListFormCode, ListFormCode = listFormCostCenter.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.Int32, SourceDbType = DbType.Guid,
FieldName = "CurrencyId", FieldName = "CurrencyId",
Width = 100, Width = 100,
ListOrderNo = 11, ListOrderNo = 11,
@ -1986,7 +1986,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
new() { new() {
ListFormCode = listFormEmployee.ListFormCode, ListFormCode = listFormEmployee.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 16, ListOrderNo = 16,

View file

@ -1663,7 +1663,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
new() { new() {
ListFormCode = listFormVisitor.ListFormCode, ListFormCode = listFormVisitor.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.Int32, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 5, ListOrderNo = 5,

View file

@ -221,7 +221,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = formTenant.ListFormCode, ListFormCode = formTenant.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "VknTckn", FieldName = "VknTckn",
Width = 100, Width = 100,
ListOrderNo = 5, ListOrderNo = 5,
@ -457,7 +457,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = formTenant.ListFormCode, ListFormCode = formTenant.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 17, ListOrderNo = 17,
@ -473,7 +473,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = formTenant.ListFormCode, ListFormCode = formTenant.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Fax", FieldName = "Fax",
Width = 100, Width = 100,
ListOrderNo = 18, ListOrderNo = 18,
@ -844,7 +844,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormTenants.ListFormCode, ListFormCode = listFormTenants.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "VknTckn", FieldName = "VknTckn",
Width = 100, Width = 100,
ListOrderNo = 5, ListOrderNo = 5,
@ -1077,7 +1077,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormTenants.ListFormCode, ListFormCode = listFormTenants.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 17, ListOrderNo = 17,
@ -1093,7 +1093,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormTenants.ListFormCode, ListFormCode = listFormTenants.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Fax", FieldName = "Fax",
Width = 100, Width = 100,
ListOrderNo = 18, ListOrderNo = 18,
@ -1321,7 +1321,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormBranches.ListFormCode, ListFormCode = listFormBranches.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "VknTckn", FieldName = "VknTckn",
Width = 100, Width = 100,
ListOrderNo = 4, ListOrderNo = 4,
@ -1554,7 +1554,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormBranches.ListFormCode, ListFormCode = listFormBranches.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Phone", FieldName = "Phone",
Width = 100, Width = 100,
ListOrderNo = 16, ListOrderNo = 16,
@ -1570,7 +1570,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormBranches.ListFormCode, ListFormCode = listFormBranches.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Int64,
FieldName = "Fax", FieldName = "Fax",
Width = 100, Width = 100,
ListOrderNo = 17, ListOrderNo = 17,
@ -5074,7 +5074,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
{ {
ListFormCode = listFormCountry.ListFormCode, ListFormCode = listFormCountry.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.Guid,
FieldName = "CurrencyId", FieldName = "CurrencyId",
Width = 100, Width = 100,
ListOrderNo = 5, ListOrderNo = 5,

View file

@ -14,7 +14,7 @@ public class BlogPost : FullAuditedEntity<Guid>, IMultiTenant
public string ContentEn { get; set; } public string ContentEn { get; set; }
public string Summary { get; set; } public string Summary { get; set; }
public string CoverImage { get; set; } public string CoverImage { get; set; }
public string ReadTime { get; set; } public DateTime ReadTime { get; set; }
public Guid CategoryId { get; set; } public Guid CategoryId { get; set; }
public virtual BlogCategory Category { get; set; } public virtual BlogCategory Category { get; set; }

View file

@ -15,11 +15,11 @@ public class Lawyer : FullAuditedEntity<Guid>, IMultiTenant
public string TaxOffice { get; set; } public string TaxOffice { get; set; }
public string TaxNumber { get; set; } public string TaxNumber { get; set; }
public string Phone1 { get; set; } public long Phone1 { get; set; }
public string Phone2 { get; set; } public long Phone2 { get; set; }
public string Phone3 { get; set; } public long Phone3 { get; set; }
public string Phone4 { get; set; } public long Phone4 { get; set; }
public string Fax { get; set; } public long Fax { get; set; }
public string Description { get; set; } public string Description { get; set; }
public string Status { get; set; } public string Status { get; set; }

View file

@ -22,9 +22,9 @@ public class Order : FullAuditedEntity<Guid>, IMultiTenant
public string Country { get; set; } public string Country { get; set; }
public string City { get; set; } public string City { get; set; }
public string PostalCode { get; set; } public string PostalCode { get; set; }
public string Phone { get; set; } public long Phone { get; set; }
public string Mobile { get; set; } public long Mobile { get; set; }
public string Fax { get; set; } public long Fax { get; set; }
public string Email { get; set; } public string Email { get; set; }
public string Website { get; set; } public string Website { get; set; }
public string MenuGroup { get; set; } public string MenuGroup { get; set; }

View file

@ -18,9 +18,9 @@ public class Branch : FullAuditedEntity<Guid>
public string Address1 { get; set; } public string Address1 { get; set; }
public string Address2 { get; set; } public string Address2 { get; set; }
public string PostalCode { get; set; } public string PostalCode { get; set; }
public string Phone { get; set; } public long Phone { get; set; }
public string Mobile { get; set; } public long Mobile { get; set; }
public string Fax { get; set; } public long Fax { get; set; }
public string Email { get; set; } public string Email { get; set; }
public string Website { get; set; } public string Website { get; set; }
public bool? IsActive { get; set; } public bool? IsActive { get; set; }

View file

@ -112,31 +112,31 @@ public static class AbpTenantExtensions
return tenant.GetProperty<string>(PlatformConsts.Tenants.PostalCode); return tenant.GetProperty<string>(PlatformConsts.Tenants.PostalCode);
} }
public static void SetPhone(this Tenant tenant, string phone) public static void SetPhone(this Tenant tenant, long phone)
{ {
tenant.SetProperty(PlatformConsts.Tenants.Phone, phone); tenant.SetProperty(PlatformConsts.Tenants.Phone, phone);
} }
public static string GetPhone(this Tenant tenant) public static long GetPhone(this Tenant tenant)
{ {
return tenant.GetProperty<string>(PlatformConsts.Tenants.Phone); return tenant.GetProperty<long>(PlatformConsts.Tenants.Phone);
} }
public static void SetMobile(this Tenant tenant, string mobile) public static void SetMobile(this Tenant tenant, long mobile)
{ {
tenant.SetProperty(PlatformConsts.Tenants.Mobile, mobile); tenant.SetProperty(PlatformConsts.Tenants.Mobile, mobile);
} }
public static string GetMobile(this Tenant tenant) public static long GetMobile(this Tenant tenant)
{ {
return tenant.GetProperty<string>(PlatformConsts.Tenants.Mobile); return tenant.GetProperty<long>(PlatformConsts.Tenants.Mobile);
} }
public static void SetFax(this Tenant tenant, string fax) public static void SetFax(this Tenant tenant, long fax)
{ {
tenant.SetProperty(PlatformConsts.Tenants.Fax, fax); tenant.SetProperty(PlatformConsts.Tenants.Fax, fax);
} }
public static string GetFax(this Tenant tenant) public static long GetFax(this Tenant tenant)
{ {
return tenant.GetProperty<string>(PlatformConsts.Tenants.Fax); return tenant.GetProperty<long>(PlatformConsts.Tenants.Fax);
} }
public static void SetEmail(this Tenant tenant, string email) public static void SetEmail(this Tenant tenant, string email)

View file

@ -1465,7 +1465,6 @@ public class PlatformDbContext :
b.Property(x => x.ContentTr).IsRequired(); b.Property(x => x.ContentTr).IsRequired();
b.Property(x => x.ContentEn).IsRequired(); b.Property(x => x.ContentEn).IsRequired();
b.Property(x => x.CoverImage).HasMaxLength(512); b.Property(x => x.CoverImage).HasMaxLength(512);
b.Property(x => x.ReadTime).HasMaxLength(64);
b.HasIndex(x => x.Slug); b.HasIndex(x => x.Slug);
b.HasIndex(x => x.IsPublished); b.HasIndex(x => x.IsPublished);

View file

@ -1,5 +1,4 @@
using Kurs.Platform.Identity; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System; using System;
using Volo.Abp.Identity; using Volo.Abp.Identity;
using Volo.Abp.ObjectExtending; using Volo.Abp.ObjectExtending;
@ -156,29 +155,29 @@ public static class PlatformEfCoreEntityExtensionMappings
); );
ObjectExtensionManager.Instance ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, string>( .MapEfCoreProperty<Tenant, long>(
PlatformConsts.Tenants.Phone, PlatformConsts.Tenants.Phone,
(entityBuilder, propertyBuilder) => (entityBuilder, propertyBuilder) =>
{ {
propertyBuilder.HasMaxLength(20).HasDefaultValue(null); propertyBuilder.HasDefaultValue(null);
} }
); );
ObjectExtensionManager.Instance ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, string>( .MapEfCoreProperty<Tenant, long>(
PlatformConsts.Tenants.Mobile, PlatformConsts.Tenants.Mobile,
(entityBuilder, propertyBuilder) => (entityBuilder, propertyBuilder) =>
{ {
propertyBuilder.HasMaxLength(20).HasDefaultValue(null); propertyBuilder.HasDefaultValue(null);
} }
); );
ObjectExtensionManager.Instance ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, string>( .MapEfCoreProperty<Tenant, long>(
PlatformConsts.Tenants.Fax, PlatformConsts.Tenants.Fax,
(entityBuilder, propertyBuilder) => (entityBuilder, propertyBuilder) =>
{ {
propertyBuilder.HasMaxLength(20).HasDefaultValue(null); propertyBuilder.HasDefaultValue(null);
} }
); );
@ -217,30 +216,6 @@ public static class PlatformEfCoreEntityExtensionMappings
propertyBuilder.HasMaxLength(64).HasDefaultValue(null); propertyBuilder.HasMaxLength(64).HasDefaultValue(null);
} }
); );
/* You can configure extra properties for the
* entities defined in the modules used by your application.
*
* This class can be used to map these extra properties to table fields in the database.
*
* USE THIS CLASS ONLY TO CONFIGURE EF CORE RELATED MAPPING.
* USE PlatformModuleExtensionConfigurator CLASS (in the Domain.Shared project)
* FOR A HIGH LEVEL API TO DEFINE EXTRA PROPERTIES TO ENTITIES OF THE USED MODULES
*
* Example: Map a property to a table field:
ObjectExtensionManager.Instance
.MapEfCoreProperty<IdentityUser, string>(
"MyProperty",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.HasMaxLength(128);
}
);
* See the documentation for more:
* https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Extending-Entities
*/
}); });
} }
} }

View file

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Kurs.Platform.Migrations namespace Kurs.Platform.Migrations
{ {
[DbContext(typeof(PlatformDbContext))] [DbContext(typeof(PlatformDbContext))]
[Migration("20251103131643_Initial")] [Migration("20251103145000_Initial")]
partial class Initial partial class Initial
{ {
/// <inheritdoc /> /// <inheritdoc />
@ -1449,9 +1449,8 @@ namespace Kurs.Platform.Migrations
b.Property<DateTime?>("PublishedAt") b.Property<DateTime?>("PublishedAt")
.HasColumnType("datetime2"); .HasColumnType("datetime2");
b.Property<string>("ReadTime") b.Property<DateTime>("ReadTime")
.HasMaxLength(64) .HasColumnType("datetime2");
.HasColumnType("nvarchar(64)");
b.Property<string>("Slug") b.Property<string>("Slug")
.IsRequired() .IsRequired()
@ -1538,9 +1537,9 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<bool?>("IsActive") b.Property<bool?>("IsActive")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
@ -1561,19 +1560,18 @@ namespace Kurs.Platform.Migrations
.HasColumnType("uniqueidentifier") .HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId"); .HasColumnName("LastModifierId");
b.Property<string>("Mobile") b.Property<long>("Mobile")
.IsRequired()
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<string>("Phone") b.Property<long>("Phone")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
.HasMaxLength(16) .HasMaxLength(16)
@ -4553,9 +4551,9 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(100) .HasMaxLength(100)
.HasColumnType("nvarchar(100)"); .HasColumnType("nvarchar(100)");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<bool>("IsDeleted") b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
@ -4576,21 +4574,21 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(100) .HasMaxLength(100)
.HasColumnType("nvarchar(100)"); .HasColumnType("nvarchar(100)");
b.Property<string>("Phone1") b.Property<long>("Phone1")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Phone2") b.Property<long>("Phone2")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Phone3") b.Property<long>("Phone3")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Phone4") b.Property<long>("Phone4")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Status") b.Property<string>("Status")
.HasMaxLength(10) .HasMaxLength(10)
@ -6040,8 +6038,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasColumnType("nvarchar(max)"); .HasColumnType("bigint");
b.Property<string>("Founder") b.Property<string>("Founder")
.HasMaxLength(128) .HasMaxLength(128)
@ -6071,8 +6069,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<string>("Mobile") b.Property<long>("Mobile")
.HasColumnType("nvarchar(max)"); .HasColumnType("bigint");
b.Property<string>("Name") b.Property<string>("Name")
.HasMaxLength(64) .HasMaxLength(64)
@ -6089,8 +6087,8 @@ namespace Kurs.Platform.Migrations
b.Property<Guid>("PaymentMethodId") b.Property<Guid>("PaymentMethodId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uniqueidentifier");
b.Property<string>("Phone") b.Property<long>("Phone")
.HasColumnType("nvarchar(max)"); .HasColumnType("bigint");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
.HasMaxLength(16) .HasMaxLength(16)
@ -12214,9 +12212,8 @@ namespace Kurs.Platform.Migrations
.HasColumnType("nvarchar(max)") .HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasMaxLength(20) .HasColumnType("bigint");
.HasColumnType("nvarchar(20)");
b.Property<string>("Founder") b.Property<string>("Founder")
.HasColumnType("nvarchar(max)"); .HasColumnType("nvarchar(max)");
@ -12244,9 +12241,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<string>("Mobile") b.Property<long>("Mobile")
.HasMaxLength(20) .HasColumnType("bigint");
.HasColumnType("nvarchar(20)");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
@ -12262,9 +12258,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<string>("Phone") b.Property<long>("Phone")
.HasMaxLength(20) .HasColumnType("bigint");
.HasColumnType("nvarchar(20)");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
.HasMaxLength(10) .HasMaxLength(10)

View file

@ -347,13 +347,13 @@ namespace Kurs.Platform.Migrations
Country = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Country = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
District = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), District = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
Fax = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Fax = table.Column<long>(type: "bigint", nullable: false),
Founder = table.Column<string>(type: "nvarchar(max)", nullable: true), Founder = table.Column<string>(type: "nvarchar(max)", nullable: true),
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true), IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
MenuGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), MenuGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Mobile = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Mobile = table.Column<long>(type: "bigint", nullable: false),
OrganizationName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), OrganizationName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Phone = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Phone = table.Column<long>(type: "bigint", nullable: false),
PostalCode = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true), PostalCode = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
Street = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Street = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
TaxOffice = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), TaxOffice = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
@ -681,11 +681,11 @@ namespace Kurs.Platform.Migrations
Address = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true), Address = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
TaxOffice = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), TaxOffice = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
TaxNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), TaxNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
Phone1 = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Phone1 = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Phone2 = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Phone2 = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Phone3 = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Phone3 = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Phone4 = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Phone4 = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Fax = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Fax = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true), Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
@ -719,9 +719,9 @@ namespace Kurs.Platform.Migrations
Country = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Country = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
City = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), City = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
PostalCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), PostalCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
Phone = table.Column<string>(type: "nvarchar(max)", nullable: true), Phone = table.Column<long>(type: "bigint", nullable: false),
Mobile = table.Column<string>(type: "nvarchar(max)", nullable: true), Mobile = table.Column<long>(type: "bigint", nullable: false),
Fax = table.Column<string>(type: "nvarchar(max)", nullable: true), Fax = table.Column<long>(type: "bigint", nullable: false),
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
MenuGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), MenuGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
@ -2167,9 +2167,9 @@ namespace Kurs.Platform.Migrations
Address1 = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), Address1 = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
Address2 = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), Address2 = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
PostalCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), PostalCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
Phone = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Phone = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Mobile = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false), Mobile = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Fax = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true), Fax = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
IsActive = table.Column<bool>(type: "bit", nullable: true, defaultValue: true), IsActive = table.Column<bool>(type: "bit", nullable: true, defaultValue: true),
@ -2756,7 +2756,7 @@ namespace Kurs.Platform.Migrations
ContentEn = table.Column<string>(type: "nvarchar(max)", nullable: false), ContentEn = table.Column<string>(type: "nvarchar(max)", nullable: false),
Summary = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false), Summary = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false),
CoverImage = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), CoverImage = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
ReadTime = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ViewCount = table.Column<int>(type: "int", nullable: true), ViewCount = table.Column<int>(type: "int", nullable: true),

View file

@ -1446,9 +1446,8 @@ namespace Kurs.Platform.Migrations
b.Property<DateTime?>("PublishedAt") b.Property<DateTime?>("PublishedAt")
.HasColumnType("datetime2"); .HasColumnType("datetime2");
b.Property<string>("ReadTime") b.Property<DateTime>("ReadTime")
.HasMaxLength(64) .HasColumnType("datetime2");
.HasColumnType("nvarchar(64)");
b.Property<string>("Slug") b.Property<string>("Slug")
.IsRequired() .IsRequired()
@ -1535,9 +1534,9 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<bool?>("IsActive") b.Property<bool?>("IsActive")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
@ -1558,19 +1557,18 @@ namespace Kurs.Platform.Migrations
.HasColumnType("uniqueidentifier") .HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId"); .HasColumnName("LastModifierId");
b.Property<string>("Mobile") b.Property<long>("Mobile")
.IsRequired()
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<string>("Phone") b.Property<long>("Phone")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
.HasMaxLength(16) .HasMaxLength(16)
@ -4550,9 +4548,9 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(100) .HasMaxLength(100)
.HasColumnType("nvarchar(100)"); .HasColumnType("nvarchar(100)");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<bool>("IsDeleted") b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
@ -4573,21 +4571,21 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(100) .HasMaxLength(100)
.HasColumnType("nvarchar(100)"); .HasColumnType("nvarchar(100)");
b.Property<string>("Phone1") b.Property<long>("Phone1")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Phone2") b.Property<long>("Phone2")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Phone3") b.Property<long>("Phone3")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Phone4") b.Property<long>("Phone4")
.HasMaxLength(20) .HasMaxLength(20)
.HasColumnType("nvarchar(20)"); .HasColumnType("bigint");
b.Property<string>("Status") b.Property<string>("Status")
.HasMaxLength(10) .HasMaxLength(10)
@ -6037,8 +6035,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasColumnType("nvarchar(max)"); .HasColumnType("bigint");
b.Property<string>("Founder") b.Property<string>("Founder")
.HasMaxLength(128) .HasMaxLength(128)
@ -6068,8 +6066,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<string>("Mobile") b.Property<long>("Mobile")
.HasColumnType("nvarchar(max)"); .HasColumnType("bigint");
b.Property<string>("Name") b.Property<string>("Name")
.HasMaxLength(64) .HasMaxLength(64)
@ -6086,8 +6084,8 @@ namespace Kurs.Platform.Migrations
b.Property<Guid>("PaymentMethodId") b.Property<Guid>("PaymentMethodId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uniqueidentifier");
b.Property<string>("Phone") b.Property<long>("Phone")
.HasColumnType("nvarchar(max)"); .HasColumnType("bigint");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
.HasMaxLength(16) .HasMaxLength(16)
@ -12211,9 +12209,8 @@ namespace Kurs.Platform.Migrations
.HasColumnType("nvarchar(max)") .HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("Fax") b.Property<long>("Fax")
.HasMaxLength(20) .HasColumnType("bigint");
.HasColumnType("nvarchar(20)");
b.Property<string>("Founder") b.Property<string>("Founder")
.HasColumnType("nvarchar(max)"); .HasColumnType("nvarchar(max)");
@ -12241,9 +12238,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<string>("Mobile") b.Property<long>("Mobile")
.HasMaxLength(20) .HasColumnType("bigint");
.HasColumnType("nvarchar(20)");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
@ -12259,9 +12255,8 @@ namespace Kurs.Platform.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<string>("Phone") b.Property<long>("Phone")
.HasMaxLength(20) .HasColumnType("bigint");
.HasColumnType("nvarchar(20)");
b.Property<string>("PostalCode") b.Property<string>("PostalCode")
.HasMaxLength(10) .HasMaxLength(10)

View file

@ -513,7 +513,7 @@ public class BlogPostSeedDto
public string Slug { get; set; } public string Slug { get; set; }
public string ContentTr { get; set; } public string ContentTr { get; set; }
public string ContentEn { get; set; } public string ContentEn { get; set; }
public string ReadTime { get; set; } public DateTime ReadTime { get; set; }
public string Summary { get; set; } public string Summary { get; set; }
public string CoverImage { get; set; } public string CoverImage { get; set; }
public string CategoryName { get; set; } public string CategoryName { get; set; }

View file

@ -807,7 +807,7 @@ const Grid = (props: GridProps) => {
} }
startEditAction={gridDto.gridOptions.editingOptionDto?.startEditAction} startEditAction={gridDto.gridOptions.editingOptionDto?.startEditAction}
popup={{ popup={{
title: gridDto.gridOptions.editingOptionDto?.popup?.title, title: translate('::' + gridDto.gridOptions.editingOptionDto?.popup?.title),
showTitle: gridDto.gridOptions.editingOptionDto?.popup?.showTitle, showTitle: gridDto.gridOptions.editingOptionDto?.popup?.showTitle,
hideOnOutsideClick: hideOnOutsideClick:
gridDto.gridOptions.editingOptionDto?.popup?.hideOnOutsideClick, gridDto.gridOptions.editingOptionDto?.popup?.hideOnOutsideClick,