Mapping.cs 496 B

123456789101112131415
  1. using Azylee.BlackBox.Models;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Data.Entity.Infrastructure.Annotations;
  4. using System.Data.Entity.ModelConfiguration;
  5. namespace Azylee.BlackBox.DBEngine
  6. {
  7. public class RunningStatusMap : EntityTypeConfiguration<RunningStatus>
  8. {
  9. public RunningStatusMap()
  10. {
  11. //this.Property(o => o.Id).HasColumnAnnotation("Index", new IndexAnnotation(new IndexAttribute() { IsUnique = true }));
  12. }
  13. }
  14. }