Skip to content

Commit 1e45707

Browse files
Merge pull request #213 from AntonioFalcao/feature/evolve-options
Changing NVARCHAR to VARCHAR
2 parents ca61648 + a7a3051 commit 1e45707

12 files changed

Lines changed: 1362 additions & 1324 deletions

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public void Configure(EntityTypeBuilder<Backpack> builder)
1616

1717
builder
1818
.Property(x => x.BackpackType)
19-
.HasConversion(new EnumToStringConverter<BackpackType>());
19+
.HasConversion(new EnumToStringConverter<BackpackType>())
20+
.IsUnicode(false)
21+
.HasMaxLength(30);
2022
}
2123
}
2224
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ public void Configure(EntityTypeBuilder<Boot> builder)
1919

2020
builder
2121
.Property(x => x.BootType)
22-
.HasConversion(new EnumToStringConverter<BootType>());
22+
.HasConversion(new EnumToStringConverter<BootType>())
23+
.IsUnicode(false)
24+
.HasMaxLength(30);
2325
}
2426
}
2527
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public void Configure(EntityTypeBuilder<Kayak> builder)
1616

1717
builder
1818
.Property(x => x.KayakType)
19-
.HasConversion(new EnumToStringConverter<KayakType>());
19+
.HasConversion(new EnumToStringConverter<KayakType>())
20+
.IsUnicode(false)
21+
.HasMaxLength(30);
2022

2123
builder
2224
.Property(x => x.AmountOfPerson);

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

Lines changed: 7 additions & 1 deletion
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
@@ -41,7 +44,9 @@ public void Configure(EntityTypeBuilder<Product> builder)
4144

4245
builder
4346
.Property(x => x.Option)
44-
.HasConversion(new EnumToStringConverter<Option>());
47+
.HasConversion(new EnumToStringConverter<Option>())
48+
.IsUnicode(false)
49+
.HasMaxLength(30);
4550

4651
builder
4752
.Property(x => x.Rating);
@@ -65,6 +70,7 @@ public void Configure(EntityTypeBuilder<Product> builder)
6570

6671
builder
6772
.Property(DiscriminatorDefaultName)
73+
.IsUnicode(false)
6874
.HasMaxLength(30);
6975
}
7076
}

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

src/Dotnet6.GraphQL4.Store.Repositories/Migrations/20210502214215_First migration.Designer.cs

Lines changed: 0 additions & 741 deletions
This file was deleted.

src/Dotnet6.GraphQL4.Store.Repositories/Migrations/20210502214215_First migration.cs

Lines changed: 0 additions & 180 deletions
This file was deleted.

src/Dotnet6.GraphQL4.Store.Repositories/Migrations/20210512195543_First migration.Designer.cs

Lines changed: 756 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Dotnet6.GraphQL4.Store.Repositories/Migrations/20210512195543_First migration.cs

Lines changed: 180 additions & 0 deletions
Large diffs are not rendered by default.

src/Dotnet6.GraphQL4.Store.Repositories/Migrations/StoreDbContextModelSnapshot.cs

Lines changed: 384 additions & 369 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)