This is a migrated thread and some comments may be shown as answers.

Array Mapping - Base Type

3 Answers 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Igor
Top achievements
Rank 1
Igor asked on 09 Aug 2011, 02:50 PM
To classical API I have found article in the documentation about ' Array Mapping - Base Type '. How it to make in the new designer?

3 Answers, 1 is accepted

Sort by
0
Nikola
Telerik team
answered on 11 Aug 2011, 04:58 PM
Hi Igor,

Unfortunately, it is not possible to map array types using the new Visual Designer.
It is possible to achieve this however, if you use our Fluent Mapping API as your mapping approach. More information on the matter can be found here.

All the best,

Nikola
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Igor
Top achievements
Rank 1
answered on 11 Aug 2011, 07:32 PM
Hi
I can't do it by hand in xml  schema ?
What's happened ?  I read that classic ORM are support this feature.
You have rewritten  all with smaller functionality?
0
Nikola
Telerik team
answered on 16 Aug 2011, 07:03 AM
Hi Igor,

The new Visual Designer was created with the idea to be simple and easy-to-use tool that covers the most common scenarios for creating an application backend. Mapping an array of base type(or collection, or dictionary) to database is considered to be more advanced scenario and was not integrated into the Visual Designer for simplicity. 

The only way of creating such a mapping is by using the Fluent Mapping API. This removes the option of doing such a mapping by hand, because the Fluent Mapping API is actually a code only approach for working with Open Access. I emphasize on the code only part because it means that Fluent Mapping API does not rely on any predefined configuration files for mapping purposes. Which in turn means that there is no XML configuration file which you can edit by hand.

In my previous answer I posted a link to a topic in our programmers guide regarding the mapping of arrays. Don't hesitate to ask if you have any troubles with it.

All the best,

Nikola 
the Telerik team
Tags
General Discussions
Asked by
Igor
Top achievements
Rank 1
Answers by
Nikola
Telerik team
Igor
Top achievements
Rank 1
Share this question
or