Base solution for your next web application
Open Closed

Up and Down not show detail EXTENDING NON-ABSTRACT ENTITIES #3512


User avatar
0
kwanp created

Hi My version: ASP.NET CORE + ANGULAR 4.X i try to follow the sample on: <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities#extending-non-abstract-entities">https://aspnetzero.com/Documents/Extend ... t-entities</a>

Up and Down not show detail

using Abp.Application.Editions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWANP.Editions
{
    public class MyEdition : Edition
    {
        public virtual int Price { get; set; }
    }
}

Re build my project and

PM> Add-Migration "Added_MyEdition_Entity"
To undo this action, use Remove-Migration.

Then the result not same with sample

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;

namespace KWANP.Migrations
{
    public partial class Added_MyEdition_Entity : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {

        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {

        }
    }
}

Thank you


1 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    Did you add it at DbContext, too?