private void CheckMappedEntityType(IEntityType entityType) { if (EntityTypeMappings.All(m => m.EntityType != entityType)) { throw new InvalidOperationException(RelationalStrings.TableNotMappedEntityType(entityType.DisplayName(), Name)); } }
private IEntityType GetMappedEntityType(IEntityType entityType) => EntityTypeMappings.Any(m => m.EntityType == entityType) ? entityType : throw new InvalidOperationException(RelationalStrings.TableNotMappedEntityType(entityType.DisplayName(), Name));