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