Exemplo n.º 1
0
        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)
            };
        }
Exemplo n.º 2
0
 public void Visit(BeginModelMap instruction)
 {
     Identifier = null;
 }