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

How to i define Memo field in Forward Mapping

1 Answer 73 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Santhosh
Top achievements
Rank 1
Santhosh asked on 19 Apr 2010, 12:16 PM
Dear All,

I need to save the large text like Memo field in SQL Server. How can i define a Memo field using Forward Mapping ORM


thanks in advance.    

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 22 Apr 2010, 09:18 AM
Hi santhosh,

 You can add a string field to your class and use the Forward mapping wizard to specify the column data type for this field. You can select 'LONGVARCHAR' as the 'TYPE' and the desired sql type - text,ntext etc
The mapping for the field would like the following

         <field name="largeText">
              <extension key="db-column">
                <extension key="db-type" value="LONGVARCHAR" />
                <extension key="db-sql-type" value="NTEXT" />
              </extension>
            </field>

The column will be created when you build the project.

Regards,
Ady
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Getting Started
Asked by
Santhosh
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or