Orchard Custom Thread - StackOverflow

Topics: Administration, Core, Customizing Orchard, General, Writing modules
Dec 4, 2013 at 9:30 AM
Edited Dec 4, 2013 at 9:32 AM
I am facing the issue once I created custom module and than tring to edit its content. I am creating custom module for updating latest post.

Here is my migration code :
SchemaBuilder.CreateTable("UpdatedPostPartRecord", table =>
And Model code is :
public class UpdatedPostPart : ContentPart<UpdatedPostPartRecord>
    public string IMDB_ID
        get { return IMDB_ID; }
        set { Record.IMDB_ID = value; }

    public string Name
       get { return Name; }
       set { Record.Name = value; }

    public DateTime DateTime
        get { return DateTime; }
        set { Record.DateTime = value; }

public class UpdatedPostPartRecord : ContentPartRecord
        public virtual string IMDB_ID { get; set; }
        public virtual string Name { get; set; }
        public virtual DateTime DateTime { get; set; }
I have created one content. While I am pressing Edit to make change in this content type, I am getting below error: "An unhandled exception of type 'System.StackOverflowException' occurred in ModuleName.dll".

Once went through some documentation , I have Updated my table's name and keep it same as my record name and also I am following Pascal Casing.

Get me to solution if anybody went through the same issue and have solved it.

Thank You.
Dec 10, 2013 at 6:01 AM
Look at each of your getters: they are calling themselves. SO, boom. return Record.IMDB_ID and so on instead.
Jun 18, 2014 at 10:21 AM
Edited Jun 18, 2014 at 10:22 AM
Hi Sohil Please know me how to define or make custom control in orchard or custom view with database.
Please help me