Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ramcharan"

Question

The code given in ASPNETZERO which is [Table("PbPersons")] public class Person : FullAuditedEntity { public const int MaxNameLength = 32; public const int MaxSurnameLength = 32; public const int MaxEmailAddressLength = 255;

[Required]
[MaxLength(MaxNameLength)]
public virtual string Name { get; set; }

[Required]
[MaxLength(MaxSurnameLength)]
public virtual string Surname { get; set; }

[MaxLength(MaxEmailAddressLength)]
public virtual string EmailAddress { get; set; }

}

asked to add .core (domain) project. In which file i need to add and

public partial class Added_Persons_Table : DbMigration { public override void Up() { CreateTable( "dbo.PbPersons", c => new { Id = c.Int(nullable: false, identity: true), Name = c.String(nullable: false, maxLength: 32), Surname = c.String(nullable: false, maxLength: 32), EmailAddress = c.String(maxLength: 255), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary<string, object> { { "DynamicFilter_Person_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id);

}
    
public override void Down()
{
    DropTable("dbo.PbPersons",
        removedAnnotations: new Dictionary&lt;string, object&gt;
        {
            { "DynamicFilter_Person_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
        });
}

}

where i need to add this. Please help me out

Showing 1 to 1 of 1 entries