mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user