How to i define Memo field in Forward Mapping

Thread is closed for posting
2 posts, 0 answers
  1. Santhosh
    Santhosh avatar
    28 posts
    Member since:
    Mar 2009

    Posted 19 Apr 2010 Link to this post

    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.    
  2. Ady
    Ady avatar
    589 posts

    Posted 22 Apr 2010 Link to this post

    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" />

    The column will be created when you build the project.

    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.
Back to Top