Skip to content

Commit

Permalink
使MiniProgram.Name为唯一索引
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Jul 18, 2020
1 parent 104914d commit 345cb1f
Show file tree
Hide file tree
Showing 5 changed files with 2,235 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.4.0</Version>
<Version>0.4.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,16 @@ public static void ConfigureWeChatManagementMiniPrograms(
{
b.ToTable(options.TablePrefix + "MiniPrograms", options.Schema);
b.ConfigureByConvention();


/* Configure more properties here */
b.HasIndex(x => x.Name).IsUnique();
});


builder.Entity<MiniProgramUser>(b =>
{
b.ToTable(options.TablePrefix + "MiniProgramUsers", options.Schema);
b.ConfigureByConvention();


/* Configure more properties here */
});
Expand All @@ -68,7 +67,6 @@ public static void ConfigureWeChatManagementMiniPrograms(
{
b.ToTable(options.TablePrefix + "UserInfos", options.Schema);
b.ConfigureByConvention();


/* Configure more properties here */
});
Expand Down
Loading

0 comments on commit 345cb1f

Please sign in to comment.