EF Core uses a series of conventions to determine the default identity columns:
Property named Id: If a class has a property named Id, by convention EF Core treats this as the primary key.
Id: EF Core will also look for a property named Id as the primary key if no property named Id is found.
If the property type is numeric or Guid, EF Core will further infer that it should be a generated (identity) column.
In our providers, we should also follow this logic. Even though we may not have a datatype (like in the case CSV), we can check the last row of the table to see if the value 'looks' like a number or Guid.
EF Core uses a series of conventions to determine the default identity columns:
If the property type is numeric or Guid, EF Core will further infer that it should be a generated (identity) column.
In our providers, we should also follow this logic. Even though we may not have a datatype (like in the case CSV), we can check the last row of the table to see if the value 'looks' like a number or Guid.