/// <summary>
/// Sets the <paramref name="value"/> of a column by the database column's name.
/// </summary>
/// <param name="columnName">The database name of the column to get the <paramref name="value"/> for.</param>
/// <param name="value">Value to assign to the column.</param>
        public void SetValue(System.String columnName, System.Object value)
        {
            switch (columnName)
            {
            case "character_template_id":
                this.CharacterTemplateID = (DemoGame.CharacterTemplateID)value;
                break;

            case "skill_id":
                this.SkillID = (DemoGame.SkillType)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
Пример #2
0
/// <summary>
/// Sets the <paramref name="value"/> of a column by the database column's name.
/// </summary>
/// <param name="columnName">The database name of the column to get the <paramref name="value"/> for.</param>
/// <param name="value">Value to assign to the column.</param>
public void SetValue(System.String columnName, System.Object value)
{
switch (columnName)
{
case "character_template_id":
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)value;
break;

case "skill_id":
this.SkillID = (DemoGame.SkillType)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
Пример #3
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterTemplateSkillTable.
/// </summary>
/// <param name="source">The ICharacterTemplateSkillTable to copy the values from.</param>
public void CopyValuesFrom(ICharacterTemplateSkillTable source)
{
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
this.SkillID = (DemoGame.SkillType)source.SkillID;
}
Пример #4
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateSkillTable"/> class.
/// </summary>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="skillID">The initial value for the corresponding property.</param>
public CharacterTemplateSkillTable(DemoGame.CharacterTemplateID @characterTemplateID, DemoGame.SkillType @skillID)
{
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
this.SkillID = (DemoGame.SkillType)@skillID;
}
Пример #5
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterSkillTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="skillID">The initial value for the corresponding property.</param>
/// <param name="timeAdded">The initial value for the corresponding property.</param>
        public CharacterSkillTable(DemoGame.CharacterID @characterID, DemoGame.SkillType @skillID, System.DateTime @timeAdded)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.SkillID     = (DemoGame.SkillType)@skillID;
            this.TimeAdded   = (System.DateTime)@timeAdded;
        }
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterTemplateSkillTable.
/// </summary>
/// <param name="source">The ICharacterTemplateSkillTable to copy the values from.</param>
        public void CopyValuesFrom(ICharacterTemplateSkillTable source)
        {
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
            this.SkillID             = (DemoGame.SkillType)source.SkillID;
        }
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateSkillTable"/> class.
/// </summary>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="skillID">The initial value for the corresponding property.</param>
        public CharacterTemplateSkillTable(DemoGame.CharacterTemplateID @characterTemplateID, DemoGame.SkillType @skillID)
        {
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.SkillID             = (DemoGame.SkillType)@skillID;
        }