I have an object in EF6 that i forgot to inherit from my auditableEntity class. This class has a configuration like so
public abstract class AuditableEntityConfig<TEntity> : BaseEntityConfig<TEntity> where TEntity : AuditableEntity
{
public AuditableEntityConfig()
: base()
{
this.Property(e => e.RowVersion)
.IsRowVersion();
}
}
Now i have updated my entity to inherit from this class and now upon running my code, i always get an error saying
Cannot alter column 'RowVersion' to be data type timestamp.
Is there anyway i can stop EF trying to set this column to be timestamp, and maybe i drop and recreate the table myself instead?