Friday, February 10, 2012
Support » Support Forum
Register Login
HomeWhat is NDO?- Executive Overview- NDO for DevelopersHow NDO Works- Persistent Classes- Mapping- Queries- Reverse Engineering- Inheritance, Polymorphism- Distributed ApplicationsLicensingSupport- Support Forum- FAQ- Solutions- Downloads- E-Mail Support- Tutorial VideosOnline ShopContact
Welcome to the NDO support forum!
Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender. Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts. The forum software requires that javascript is enabled. Please do not insert licence information or licence keys in forum posts. If you know a good answer to a post of another user, feel free to reply! The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.
Hi Michael,
open the mapping tool and enter "nvarchar(max)" (without the quotes) as ColumnType. That should do it.
Mirko
sorry for not answering earlier. Currently I'm heavily involved in some project work.
As far as I remember, nvarchar(max) should work without a length restriction. I don't know, what the reason for the failure might be. Maybe, you left accidentally a ColumnLenght attribute in the mapping file?
In any case the NDO logging mechanism can help you resolving such situations. Just write:
pm.LogAdapter = new NDO.Logging.ConsoleLogAdapter(); // Or choose another log adapterpm.VerboseMode = true;
After executing this lines, NDO lists all ADO.NET commands together with it's parameters. For the parameters you can see the Size property. The size property must be 0, if you don't want to specify a size.
The combination of setting a ColumnLength attribute and IgnoreLengthInDDL causes NDO to set the Size property to the given value while it ignores the ColumnLength in the DDL code.
Best Regards:Mirko