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

IRepository(TEntity) with custom Id name #6929


User avatar
0
antonis created

I have a class Client that inherits from Entity. By default it created the Class with an Id property. I want to override the default naming and make it ClientId. Is that possible?

Thanks


3 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    It is not recommended that you do this.

    Of course, there are some discussions about this: Https://github.com/aspnetboilerplate/aspnetboilerplate/issues/100 Https://github.com/aspnetboilerplate/aspnetboilerplate/issues/586

  • User Avatar
    0
    antonis created

    Why it is not recommended?

  • User Avatar
    0
    maliming created
    Support Team

    Because this does not fit some of the concepts of abp framework design, If it is not necessary, try to write the code according to the convention of the framework.