public void Insert(string Name,string ValueX)
        {
            Setting item = new Setting();

            item.Name = Name;

            item.ValueX = ValueX;

            item.Save(UserName);
        }
Esempio n. 2
0
 private Setting CreateSetting(string columnName, DbType dbType, bool isExpression)
 {
     Setting s = new Setting
                     {
                         query = this,
                         ColumnName = columnName,
                         ParameterName = Utility.PrefixParameter(String.Concat("up_", Utility.StripNonAlphaNumeric(columnName)), Provider),
                         IsExpression = isExpression,
                         DataType = dbType
                     };
     return s;
 }
        public void Update(int SettingID,string Name,string ValueX)
        {
            Setting item = new Setting();

                item.SettingID = SettingID;

                item.Name = Name;

                item.ValueX = ValueX;

            item.MarkOld();
            item.Save(UserName);
        }