Developer forum

Forum » Development » Method Save is not called (Code First)

Method Save is not called (Code First)

Lars Larsen
Reply

Hi,

I have created this item. But the Save method is never called! Why not? Im am using version 8.3.1.6. 

public class ItemSaveTest : ItemEntry
{
    [Name("TestSave")]
    public string TestSave { get; set; }

    // this save method is never called!
    public override void Save()
    {
        var i = 0;
        base.Save();
    }
}

 

 

 

 

 


Replies

 
Mikkel Ricky
Reply

How are you using this item? Do you create new items from code or using the Dynamicweb backend?

 

 

 
Lars Larsen
Reply

Hi Mikkel

I have created the item (TestSave) using the Code-First approach (not from within the backend). I would like the save method to be executed when an item instance of this TestSave item is saved from within the backend.

 

 
Lars Larsen
Reply

Hi Mikkel

Anything new about this issue?

 

You must be logged in to post in the forum