You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
646 B
23 lines
646 B
2 years ago
|
using AX.FireTrainingSys.Models;
|
||
|
using Microsoft.EntityFrameworkCore;
|
||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace AX.FireTrainingSys.EntityConfigurations
|
||
|
{
|
||
|
public class TemplateFoamHydrantConfig : IEntityTypeConfiguration<TemplateFoamHydrant>
|
||
|
{
|
||
|
public void Configure(EntityTypeBuilder<TemplateFoamHydrant> entity)
|
||
|
{
|
||
|
//组合键
|
||
|
entity.HasKey(key => new { key.CompanyName, key.Id });
|
||
|
|
||
|
entity.Property(e => e.Id)
|
||
|
.IsUnicode(false);
|
||
|
}
|
||
|
}
|
||
|
}
|