public void Visit(BeginProperty instruction) { if (!instruction.IsIdentifier) { return; } if (Identifier != null) { throw new ArgumentException("There are multiple identifying fields defined on the model map being visited."); } var field = instruction.Field.Resolve(_services).ToString(); Identifier = new ModelMapProperty { FieldName = field, Key = instruction.Key.Resolve(_services).ToString(), SchemaFieldType = getSchemaFieldType(field) }; }
public void Visit(BeginModelMap instruction) { Identifier = null; }