private void EnsureTableExists <TEntityData>() where TEntityData : class, IEntityData { var tableName = GetTableName <TEntityData>(); var columnInfos = baseConnection.GetTableInfo(tableName); if (!columnInfos.Any()) { baseConnection.CreateTable <TEntityData>(); } else { baseConnection.MigrateTable <TEntityData>(); } }