if(foreignClassAttribute.primaryKeyAttributes.Count<1)thrownewInvalidOperationException($"'{foreignClassAttribute.parentClassType.Name}' does not have a primaryKey.");
if(foreignClassAttribute.primaryKeyAttributes.Count<1)thrownewInvalidOperationException($"'{foreignClassAttribute.parentClassType.Name}' does not have a primaryKey.");