bug fix e tentetivi seed data
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WebDoorCreator.Data.DbModels
|
||||
{
|
||||
[Table("TestTable")]
|
||||
public class IdentityTableSeedTest
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdUni { get; set; } = 0;
|
||||
|
||||
[MaxLength(50)]
|
||||
public string Campo1 { get; set; } = "";
|
||||
|
||||
[MaxLength(500)]
|
||||
public string Campo2 { get; set; } = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user