9cff87fe85
Remove project bookkeeping citations from shipped code comments across the solution: hyphenated task IDs (WP-14, StoreAndForward-025), milestone/task/ issue refs (M3, Task 4, Audit Log #23, #21), Bundle X task-bundle labels, and C/D/K/S/T phase labels. Comment text only — no code logic, string/log literals, or XML-doc structure changed. Genuine descriptions are preserved (only the citation is stripped), and technical lookalikes are retained (UTF-8, SHA-256, T00:00:00, M365, UTC-5, pre-C4/pre-C5 schema versions). Flagged by the new CommentChecker TaskReferenceInComment / TrackingReferenceInComment checks plus targeted grep passes; full solution builds clean, append-only guard tests pass.
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
using ZB.MOM.WW.ScadaBridge.Commons.Entities.InboundApi;
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.Configurations;
|
|
|
|
// The SQL Server ApiKey entity was retired — inbound API keys now
|
|
// live in the shared ZB.MOM.WW.Auth.ApiKeys SQLite store. The former
|
|
// ApiKeyConfiguration (and the ApiMethod.ApprovedApiKeyIds mapping) were removed; the
|
|
// ApiKeys table + ApprovedApiKeyIds column are dropped by the RetireInboundApiKeyStore
|
|
// migration.
|
|
|
|
public class ApiMethodConfiguration : IEntityTypeConfiguration<ApiMethod>
|
|
{
|
|
/// <summary>Configures the EF Core mapping for the <see cref="ApiMethod"/> entity.</summary>
|
|
/// <param name="builder">Entity type builder used to apply the configuration.</param>
|
|
public void Configure(EntityTypeBuilder<ApiMethod> builder)
|
|
{
|
|
builder.HasKey(m => m.Id);
|
|
|
|
builder.Property(m => m.Name)
|
|
.IsRequired()
|
|
.HasMaxLength(200);
|
|
|
|
builder.Property(m => m.Script)
|
|
.IsRequired();
|
|
|
|
builder.Property(m => m.ParameterDefinitions)
|
|
.HasMaxLength(4000);
|
|
|
|
builder.Property(m => m.ReturnDefinition)
|
|
.HasMaxLength(4000);
|
|
|
|
builder.HasIndex(m => m.Name).IsUnique();
|
|
}
|
|
}
|