Update ElementSessionState.cs

Make Model Serializable for use in Web Farms with session state stored in a database. Currently a Serialization error is thrown when creating layout or page in the dashboard.
This commit is contained in:
Gert Smith
2015-09-26 10:52:39 +02:00
parent 5b0efdba58
commit a3ded18eb6

View File

@@ -1,9 +1,12 @@
using System;
namespace Orchard.Layouts.Models {
public class ElementSessionState {
 [Serializable]
public class ElementSessionState {
public string TypeName { get; set; }
public string ElementData { get; set; }
public string ElementEditorData { get; set; }
public int? ContentId { get; set; }
public string ContentType { get; set; }
}
}
}