AspNetCore-WebApi-Course icon indicating copy to clipboard operation
AspNetCore-WebApi-Course copied to clipboard

why when add new Entity create BaseEntity<Guid>s in databse

Open sajadghobadi opened this issue 4 years ago • 3 comments

thanks for your template. when i create new entity(for example city) inherited from BaseEntity<Guid> and run project, migration applied. but i see one table with BaseEntity<Guid>s created. where is my mistak? Capture

sajadghobadi avatar Feb 03 '22 19:02 sajadghobadi

You're welcome. Wow, this is something completely new and strange! I had never seen such a thing before. Can you send me the code that caused this output?

mjebrahimi avatar Feb 04 '22 12:02 mjebrahimi

in master branch you can add new entity to Entities project with inherited from BaseEntity<Guid> like this :

 public class Group:BaseEntity<Guid>
    {
        public string Name { get; set; }

        public string PathologicalDescription { get; set; }     
    }

but after run MyAPI project that normally run IntializeDatabase method, you can see database not created table with Groups name. you can test now with current code in Master branch

sajadghobadi avatar Feb 05 '22 04:02 sajadghobadi

This is exactly the output of that code in the master branch.

My suggestion is to provide a reproducible code about this problem in a repository that I can test on it.

mjebrahimi avatar Feb 05 '22 11:02 mjebrahimi