Open Closed

IRepository(TEntity) with custom Id name #6929


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)
  • 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

  • 0
    antonis created

    Why it is not recommended?

  • 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.