private void LoadActionSetting(SqlDataReader reader) { _actionSettingId = (int)reader["action_setting_id"]; if (!reader.IsDBNull(reader.GetOrdinal("action_id"))) { _actionId = (int)reader["action_id"]; } _name = reader["name"].ToString(); _value = reader["value"].ToString().Replace("==", "=").Replace("^^", ";"); _type = (SettingAttributeType)Enum.Parse(typeof(SettingAttributeType), reader["type_id"].ToString()); }
public ActionSetting(string name, string value, SettingAttributeType type) { _name = name; _value = value; _type = type; }