/// <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> /// Initializes a new instance of the <see cref="GuildTable"/> class. /// </summary> /// <param name="created">The initial value for the corresponding property.</param> /// <param name="iD">The initial value for the corresponding property.</param> /// <param name="name">The initial value for the corresponding property.</param> /// <param name="tag">The initial value for the corresponding property.</param> public GuildTable(System.DateTime @created, NetGore.Features.Guilds.GuildID @iD, System.String @name, System.String @tag) { this.Created = (System.DateTime)@created; this.ID = (NetGore.Features.Guilds.GuildID)@iD; this.Name = (System.String)@name; this.Tag = (System.String)@tag; }
/// <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 "counter": this.Counter = (System.Int64)value; break; case "guild_event_counter_id": this.GuildEventCounterId = (System.Byte)value; break; case "guild_id": this.GuildID = (NetGore.Features.Guilds.GuildID)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 "counter": this.Counter = (System.Int64)value; break; case "guild_event_counter_id": this.GuildEventCounterId = (System.Byte)value; break; case "guild_id": this.GuildID = (NetGore.Features.Guilds.GuildID)value; break; default: throw new ArgumentException("Field not found.","columnName"); } }
/// <summary> /// Copies the values from the given <paramref name="source"/> into this EventCountersGuildTable. /// </summary> /// <param name="source">The IEventCountersGuildTable to copy the values from.</param> public void CopyValuesFrom(IEventCountersGuildTable source) { this.Counter = (System.Int64)source.Counter; this.GuildEventCounterId = (System.Byte)source.GuildEventCounterId; this.GuildID = (NetGore.Features.Guilds.GuildID)source.GuildID; }
/// <summary> /// Initializes a new instance of the <see cref="EventCountersGuildTable"/> class. /// </summary> /// <param name="counter">The initial value for the corresponding property.</param> /// <param name="guildEventCounterId">The initial value for the corresponding property.</param> /// <param name="guildID">The initial value for the corresponding property.</param> public EventCountersGuildTable(System.Int64 @counter, System.Byte @guildEventCounterId, NetGore.Features.Guilds.GuildID @guildID) { this.Counter = (System.Int64)@counter; this.GuildEventCounterId = (System.Byte)@guildEventCounterId; this.GuildID = (NetGore.Features.Guilds.GuildID)@guildID; }
/// <summary> /// Initializes a new instance of the <see cref="GuildEventTable"/> class. /// </summary> /// <param name="arg0">The initial value for the corresponding property.</param> /// <param name="arg1">The initial value for the corresponding property.</param> /// <param name="arg2">The initial value for the corresponding property.</param> /// <param name="characterID">The initial value for the corresponding property.</param> /// <param name="created">The initial value for the corresponding property.</param> /// <param name="eventID">The initial value for the corresponding property.</param> /// <param name="guildID">The initial value for the corresponding property.</param> /// <param name="iD">The initial value for the corresponding property.</param> /// <param name="targetCharacterID">The initial value for the corresponding property.</param> public GuildEventTable(System.String @arg0, System.String @arg1, System.String @arg2, DemoGame.CharacterID @characterID, System.DateTime @created, System.Byte @eventID, NetGore.Features.Guilds.GuildID @guildID, System.Int32 @iD, System.Nullable <DemoGame.CharacterID> @targetCharacterID) { this.Arg0 = (System.String)@arg0; this.Arg1 = (System.String)@arg1; this.Arg2 = (System.String)@arg2; this.CharacterID = (DemoGame.CharacterID)@characterID; this.Created = (System.DateTime)@created; this.EventID = (System.Byte)@eventID; this.GuildID = (NetGore.Features.Guilds.GuildID)@guildID; this.ID = (System.Int32)@iD; this.TargetCharacterID = (System.Nullable <DemoGame.CharacterID>)@targetCharacterID; }