Skip to content

Commit 37ba20f

Browse files
Changing NVARCHAR to VARCHAR in entity configurations
1 parent 1cd9a1e commit 37ba20f

3 files changed

Lines changed: 385 additions & 373 deletions

File tree

src/Dotnet6.GraphQL4.Store.Repositories/Configurations/Products/ProductConfiguration.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ public void Configure(EntityTypeBuilder<Product> builder)
2020

2121
builder
2222
.Property(x => x.Description)
23+
.IsUnicode(false)
2324
.HasMaxLength(300);
2425

2526
builder
2627
.Property(x => x.IntroduceAt);
2728

2829
builder
2930
.Property(x => x.Name)
31+
.IsUnicode(false)
3032
.HasMaxLength(50)
3133
.IsRequired();
3234

3335
builder
3436
.Property(x => x.PhotoUrl)
37+
.IsUnicode(false)
3538
.HasMaxLength(100);
3639

3740
builder

src/Dotnet6.GraphQL4.Store.Repositories/Configurations/Reviews/ReviewConfiguration.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ public void Configure(EntityTypeBuilder<Review> builder)
1212
.HasKey(x => x.Id);
1313

1414
builder
15-
.Property(x => x.Comment);
15+
.Property(x => x.Comment)
16+
.IsUnicode(false)
17+
.HasMaxLength(1000);
1618

1719
builder
1820
.Property(x => x.Title)
21+
.IsUnicode(false)
1922
.HasMaxLength(100);
2023

2124
builder

0 commit comments

Comments
 (0)