Exemplo n.º 1
0
        static public void Delete(System.Int32 storeId, System.String name, esSqlAccessType sqlAccessType)
        {
            var obj = new StoreSetting();

            obj.StoreId = storeId;
            obj.Name    = name;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
Exemplo n.º 2
0
        public void UpdateSetting(StoreSettingNames settingName, string value)
        {
            StoreSetting setting = new StoreSetting();

            if (setting.LoadByPrimaryKey(this.Id.Value, settingName.ToString()))
            {
                setting.Value = value;
            }
            else
            {
                setting.StoreId = this.Id.Value;
                setting.Name    = settingName.ToString();
                setting.Value   = value;
            }
            setting.Save();
        }