SF5: OpenAccess.Metadata.Fluent.StringPropertyConfiguration' does not contain a definition for 'IsLongText'?
I'm running SF5 and have a custom module which includes a string field whose length is greater than 255 characters. In my fluent mapping I'm trying to do the following:
curriculumDbDoc.HasProperty(d => d.Description).IsLongText(
this
.Context).IsNotNullable();
However, Intellisense is not showing the IsLongText as a member method and I get the following compiler error:
'Telerik.OpenAccess.Metadata.Fluent.StringPropertyConfiguration' does not contain a definition for 'IsLongText' and no extension method 'IsLongText' accepting a first argument of type 'Telerik.OpenAccess.Metadata.Fluent.StringPropertyConfiguration' could be found (are you missing a using directive or an assembly reference?) C:\Program Files (x86)\Telerik\Sitefinity 4.3\Projects\NLG Sitefinity Site\NLG Sitefinity Site\Modules\CurriculumDbDoc\Data\CurriculumDbDocFluentMetaDataSource.cs
What am I missing?
--Steve
Can I assume that the IsLongText method was replaced with the HasColumnType("varchar(max)"
) method:
curriculumDbDoc
.HasProperty(d => d.Description).HasColumnType(
"varchar(max)"
);
Hello SteveV,
The IsLongText method is still there but please note that this is an extension method provided by sitefinity and not OpenAccess. As such you will need to include the Telerik.Sitefinity.Model namespace in order to use it without compilation errors.
The HasColumnType method comes from the OpenAccess API and is used to explicitly specify the type to which your column will be mapped. Basically both methods should result in the same behaviour.