Increase field length limit

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-27 18:39:17 -07:00
parent f077291cf7
commit 1cc9b5e334
2 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using Orchard.ContentManagement.FieldStorage;
using Orchard.ContentManagement.FieldStorage.InfosetStorage;
using Orchard.Data.Conventions;
namespace Orchard.ContentManagement.Records {
public class ContentItemRecord {
@@ -16,6 +15,7 @@ namespace Orchard.ContentManagement.Records {
public virtual ContentTypeRecord ContentType { get; set; }
public virtual IList<ContentItemVersionRecord> Versions { get; set; }
[StringLengthMax]
public virtual string Data { get { return Infoset.Data; } set { Infoset.Data = value; } }
public virtual Infoset Infoset { get; private set; }
}

View File

@@ -1,4 +1,5 @@
using Orchard.ContentManagement.FieldStorage.InfosetStorage;
using Orchard.Data.Conventions;
namespace Orchard.ContentManagement.Records {
public class ContentItemVersionRecord {
@@ -13,6 +14,7 @@ namespace Orchard.ContentManagement.Records {
public virtual bool Published { get; set; }
public virtual bool Latest { get; set; }
[StringLengthMax]
public virtual string Data { get { return Infoset.Data; } set { Infoset.Data = value; } }
public virtual Infoset Infoset { get; private set; }
}