コード例 #1
0
 public void Configure(EntityTypeBuilder <Student> builder)
 {
     builder.AddModInfoConfiguration();
     builder.Property(t => t.FirstName).HasMaxLength(250).IsRequired();
     builder.Property(t => t.LastName).HasMaxLength(250).IsRequired();
 }
コード例 #2
0
 public void Configure(EntityTypeBuilder <Course> builder)
 {
     builder.AddModInfoConfiguration();
     builder.Property(t => t.CourseName).HasMaxLength(250).IsRequired();
 }