Browse Source

Add MemberCount to Organization

pull/49/head
Berkan Sasmaz 5 years ago
parent
commit
fa03c0ccc9
  1. 2
      src/EventHub.Domain/Organizations/Organization.cs
  2. 2628
      src/EventHub.EntityFrameworkCore/Migrations/20210727070707_Added_MemberCount_To_Organization.Designer.cs
  3. 24
      src/EventHub.EntityFrameworkCore/Migrations/20210727070707_Added_MemberCount_To_Organization.cs
  4. 5
      src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs

2
src/EventHub.Domain/Organizations/Organization.cs

@ -26,6 +26,8 @@ namespace EventHub.Organizations
public string MediumUsername { get; set; }
public int MemberCount { get; internal set; }
private Organization()
{
}

2628
src/EventHub.EntityFrameworkCore/Migrations/20210727070707_Added_MemberCount_To_Organization.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore/Migrations/20210727070707_Added_MemberCount_To_Organization.cs

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_MemberCount_To_Organization : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "MemberCount",
table: "EhOrganizations",
type: "integer",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "MemberCount",
table: "EhOrganizations");
}
}
}

5
src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs

@ -18,7 +18,7 @@ namespace EventHub.Migrations
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.7")
.HasAnnotation("ProductVersion", "5.0.8")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
modelBuilder.Entity("EventHub.Countries.Country", b =>
@ -310,6 +310,9 @@ namespace EventHub.Migrations
b.Property<string>("MediumUsername")
.HasColumnType("text");
b.Property<int>("MemberCount")
.HasColumnType("integer");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(32)

Loading…
Cancel
Save