Something went wrong. Try again.
Event Sourcing Framework on top of Microsoft Orleans and PostgreSQL
Something went wrong. Try again.
EventSourcing samples ToDo src Persistence.PostgreSQL Tasks TaskViewDailyStatsEntityConfiguration.cs
123456789101112131415161718192021222324using Flensrocker.ToDo.Abstractions.Tasks;using Microsoft.EntityFrameworkCore;using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Flensrocker.ToDo.Persistence.PostgreSQL.Tasks;
internal class TaskViewDailyStatsEntityConfiguration : IEntityTypeConfiguration<TaskView.DailyStats>{ public void Configure(EntityTypeBuilder<TaskView.DailyStats> builder) { builder.ToTable(ToDoPostgreSQLPersistenceConstants.TaskDailyStatsTableName, ToDoPostgreSQLPersistenceConstants.SchemaName);
builder.Property(e => e.DailyStatsId).HasMaxLength(72).IsRequired(); builder.Property(e => e.Day); builder.Property(e => e.TenantId); builder.Property(e => e.UserId); builder.Property(e => e.CountOpened); builder.Property(e => e.CountCompleted); builder.Property(e => e.CountDismissed);
builder.HasKey(e => e.DailyStatsId); }}