Home

Castle Stronghold

Castle Project Forum Index Castle Project
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'StringClob' can't be create by 'text' in sqlserver 2005?

 
Post new topic   Reply to topic    Castle Project Forum Index -> AR Usage
View previous topic :: View next topic  
Author Message
f_lotus



Joined: 13 Nov 2006
Posts: 3

PostPosted: Mon Jan 01, 2007 6:26 am    Post subject: 'StringClob' can't be create by 'text' in sqlserver 2005? Reply with quote

The entity:
Code:
       
        private string content;
        [Property(ColumnType = "StringClob")]
        public string Contents
        {
            get { return content; }
            set { content = value; }
        }


When execute
" Castle.ActiveRecord.ActiveRecordStarter.CreateSchema();"
the table will be created
But the the field "Contents" is still nvarchar (255)
why?
dialect :sqlserver 2005
Back to top
View user's profile Send private message
hammett
Castle Team


Joined: 15 Apr 2006
Posts: 1739
Location: SP, Brasil

PostPosted: Mon Jan 01, 2007 4:02 pm    Post subject: Reply with quote

see http://www.ayende.com/Blog/2006/12/30/NHibernateAndLargeTextFieldsGotchas.aspx
_________________
Cheers,
hammett
http://hammett.castleproject.org/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
f_lotus



Joined: 13 Nov 2006
Posts: 3

PostPosted: Thu Jan 04, 2007 4:45 am    Post subject: Reply with quote

Thank you very much!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Project Forum Index -> AR Usage All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group