I was making a MVC project using Unit Of Work and Repository. I Separated my Models, Controllers and Mapping , etc... into different libraries in the solution. While i was working with the Base Entity, i happened to encounter an issue that the ID that i used for multiple tables that based on the Base Entity increases in this scenario. When i insert a new data to Table A, the ID auto increases for EX : 1, but when i insert a new data to Table B, the ID increases its value of Value A and the first Data of Table B has ID's value of 2. How can i manage to separate the ID between tables to increase by the TABLE's current value instead of the BASE ENTITY's current value that the TABLE is based on ? Here is my Base Entities : I was making a MVC project using Unit Of Work a