isPrimaryKeyField function
Implementation
bool isPrimaryKeyField(FieldElement field) {
if (field.metadata.annotations.length == 0) {
return false;
}
var annotation = getAnnotation(field, PrimaryKey);
return annotation != null;
}
bool isPrimaryKeyField(FieldElement field) {
if (field.metadata.annotations.length == 0) {
return false;
}
var annotation = getAnnotation(field, PrimaryKey);
return annotation != null;
}