public void Visit(FieldMap fieldMap) { if (!fieldMap.IsIdentifier) { return; } if (IndentifierField != null) { throw new ArgumentException("There are multiple identifying fields defined on the model map being visited."); } IndentifierField = new ModelMapFieldDetails { FieldName = fieldMap.FieldNames.First(), Property = fieldMap.Property, SchemaFieldType = getSchemaFieldType(fieldMap) }; }
public void Visit(BeginModelMap beginModelMap) { IndentifierField = null; }