/// <summary> /// Copies the values from the given <paramref name="source"/> into this GuildMemberTable. /// </summary> /// <param name="source">The IGuildMemberTable to copy the values from.</param> public void CopyValuesFrom(IGuildMemberTable source) { this.CharacterID = (DemoGame.CharacterID)source.CharacterID; this.GuildID = (NetGore.Features.Guilds.GuildID)source.GuildID; this.Joined = (System.DateTime)source.Joined; this.Rank = (NetGore.Features.Guilds.GuildRank)source.Rank; }
/// <summary> /// Initializes a new instance of the <see cref="GuildMemberTable"/> class. /// </summary> /// <param name="characterID">The initial value for the corresponding property.</param> /// <param name="guildID">The initial value for the corresponding property.</param> /// <param name="joined">The initial value for the corresponding property.</param> /// <param name="rank">The initial value for the corresponding property.</param> public GuildMemberTable(DemoGame.CharacterID @characterID, NetGore.Features.Guilds.GuildID @guildID, System.DateTime @joined, NetGore.Features.Guilds.GuildRank @rank) { this.CharacterID = (DemoGame.CharacterID)@characterID; this.GuildID = (NetGore.Features.Guilds.GuildID)@guildID; this.Joined = (System.DateTime)@joined; this.Rank = (NetGore.Features.Guilds.GuildRank)@rank; }
/// <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_id": this.CharacterID = (DemoGame.CharacterID)value; break; case "guild_id": this.GuildID = (NetGore.Features.Guilds.GuildID)value; break; case "joined": this.Joined = (System.DateTime)value; break; case "rank": this.Rank = (NetGore.Features.Guilds.GuildRank)value; break; default: throw new ArgumentException("Field not found.", "columnName"); } }
/// <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_id": this.CharacterID = (DemoGame.CharacterID)value; break; case "guild_id": this.GuildID = (NetGore.Features.Guilds.GuildID)value; break; case "joined": this.Joined = (System.DateTime)value; break; case "rank": this.Rank = (NetGore.Features.Guilds.GuildRank)value; break; default: throw new ArgumentException("Field not found.","columnName"); } }
/// <summary> /// Copies the values from the given <paramref name="source"/> into this GuildMemberTable. /// </summary> /// <param name="source">The IGuildMemberTable to copy the values from.</param> public void CopyValuesFrom(IGuildMemberTable source) { this.CharacterID = (DemoGame.CharacterID)source.CharacterID; this.GuildID = (NetGore.Features.Guilds.GuildID)source.GuildID; this.Joined = (System.DateTime)source.Joined; this.Rank = (NetGore.Features.Guilds.GuildRank)source.Rank; }
/// <summary> /// Initializes a new instance of the <see cref="GuildMemberTable"/> class. /// </summary> /// <param name="characterID">The initial value for the corresponding property.</param> /// <param name="guildID">The initial value for the corresponding property.</param> /// <param name="joined">The initial value for the corresponding property.</param> /// <param name="rank">The initial value for the corresponding property.</param> public GuildMemberTable(DemoGame.CharacterID @characterID, NetGore.Features.Guilds.GuildID @guildID, System.DateTime @joined, NetGore.Features.Guilds.GuildRank @rank) { this.CharacterID = (DemoGame.CharacterID)@characterID; this.GuildID = (NetGore.Features.Guilds.GuildID)@guildID; this.Joined = (System.DateTime)@joined; this.Rank = (NetGore.Features.Guilds.GuildRank)@rank; }