if(classAttribute.primaryKeyAttributes.Count<1)thrownewInvalidOperationException($"'{classAttribute.parentClassType.Name}' does not have a primaryKey.");
if(classAttribute.primaryKeyAttributes.Count>1)thrownewInvalidOperationException($"IntermediateObject does not support multiple primaryKeys.");
thrownewInvalidOperationException($"IntermediateObject has to be typeof(List<T>). Maybe you meant to use DbForeignObject or DbReverseForeignObject for 1:m or 1:1 relations.");
if(foreignDbObject.primaryKeyAttributes.Count<1)thrownewInvalidOperationException($"'{foreignDbObject.parentClassType.Name}' does not have a primaryKey.");
if(foreignDbObject.primaryKeyAttributes.Count>1)thrownewInvalidOperationException($"IntermediateObject does not support multiple primaryKeys. (Found '{foreignDbObject.primaryKeyAttributes.Count}' in '{foreignDbObject.parentClassType.Name}')");
if(foreignClassAttribute.primaryKeyAttributes.Count<1)thrownewInvalidOperationException($"'{foreignClassAttribute.parentClassType.Name}' does not have a primaryKey.");
if(foreignClassAttribute.primaryKeyAttributes.Count>1)thrownewInvalidOperationException($"IntermediateObject does not support multiple primaryKeys. (Found '{foreignClassAttribute.primaryKeyAttributes.Count}' in '{foreignClassAttribute.parentClassType.Name}')");