Ejemplo n.º 1
0
			public Mapping(TypeFacade entity, TypeFacade message, string name = null)
			{
				ModelTypeName = entity.Name;
				MessageTypeName = message.Name;

				name = name ?? message.Name;
				var properties = new TypeComparer(entity, message);
				Properties = properties.ScalarProperties;
				PropertiesWithoutId = properties.ScalarPropertiesWithoutId;
				buildNames(name);

			}
Ejemplo n.º 2
0
		public MappingFile(TypeFacade left, TypeFacade right)
		{
			Template = new MappingTemplate {File = this};
			Types = new TypeComparer(left, right);
		}