/// <summary> /// Copies the values from the given <paramref name="source"/> into this WorldStatsGuildUserChangeTable. /// </summary> /// <param name="source">The IWorldStatsGuildUserChangeTable to copy the values from.</param> public void CopyValuesFrom(IWorldStatsGuildUserChangeTable source) { this.GuildID = (System.Nullable <NetGore.Features.Guilds.GuildID>)source.GuildID; this.ID = (System.UInt32)source.ID; this.UserID = (DemoGame.CharacterID)source.UserID; this.When = (System.DateTime)source.When; }
/// <summary> /// Checks if this <see cref="IWorldStatsGuildUserChangeTable"/> contains the same values as another <see cref="IWorldStatsGuildUserChangeTable"/>. /// </summary> /// <param name="source">The source <see cref="IWorldStatsGuildUserChangeTable"/>.</param> /// <param name="otherItem">The <see cref="IWorldStatsGuildUserChangeTable"/> to compare the values to.</param> /// <returns> /// True if this <see cref="IWorldStatsGuildUserChangeTable"/> contains the same values as the <paramref name="otherItem"/>; otherwise false. /// </returns> public static System.Boolean HasSameValues(this IWorldStatsGuildUserChangeTable source, IWorldStatsGuildUserChangeTable otherItem) { return(Equals(source.GuildID, otherItem.GuildID) && Equals(source.ID, otherItem.ID) && Equals(source.UserID, otherItem.UserID) && Equals(source.When, otherItem.When)); }
/// <summary> /// Copies the column values into the given Dictionary using the database column name /// with a prefixed @ as the key. The keys must already exist in the Dictionary; /// this method will not create them if they are missing. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="dic">The Dictionary to copy the values into.</param> public static void CopyValues(IWorldStatsGuildUserChangeTable source, System.Collections.Generic.IDictionary <System.String, System.Object> dic) { dic["guild_id"] = (System.Nullable <NetGore.Features.Guilds.GuildID>)source.GuildID; dic["id"] = (System.UInt32)source.ID; dic["user_id"] = (DemoGame.CharacterID)source.UserID; dic["when"] = (System.DateTime)source.When; }
/// <summary> /// Copies the column values into the given DbParameterValues using the database column name /// with a prefixed @ as the key. The keys must already exist in the DbParameterValues; /// this method will not create them if they are missing. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="paramValues">The DbParameterValues to copy the values into.</param> public static void CopyValues(this IWorldStatsGuildUserChangeTable source, NetGore.Db.DbParameterValues paramValues) { paramValues["guild_id"] = (System.Nullable <System.UInt16>)source.GuildID; paramValues["id"] = (System.UInt32)source.ID; paramValues["user_id"] = (System.Int32)source.UserID; paramValues["when"] = (System.DateTime)source.When; }
/// <summary> /// Copies the column values into the given DbParameterValues using the database column name /// with a prefixed @ as the key. The key must already exist in the DbParameterValues /// for the value to be copied over. If any of the keys in the DbParameterValues do not /// match one of the column names, or if there is no field for a key, then it will be /// ignored. Because of this, it is important to be careful when using this method /// since columns or keys can be skipped without any indication. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="paramValues">The DbParameterValues to copy the values into.</param> public static void TryCopyValues(this IWorldStatsGuildUserChangeTable source, NetGore.Db.DbParameterValues paramValues) { for (int i = 0; i < paramValues.Count; i++) { switch (paramValues.GetParameterName(i)) { case "guild_id": paramValues[i] = (System.Nullable <System.UInt16>)source.GuildID; break; case "id": paramValues[i] = (System.UInt32)source.ID; break; case "user_id": paramValues[i] = (System.Int32)source.UserID; break; case "when": paramValues[i] = (System.DateTime)source.When; break; } } }
/// <summary> /// Copies the column values into the given DbParameterValues using the database column name /// with a prefixed @ as the key. The keys must already exist in the DbParameterValues; /// this method will not create them if they are missing. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="paramValues">The DbParameterValues to copy the values into.</param> public static void CopyValues(this IWorldStatsGuildUserChangeTable source, DbParameterValues paramValues) { paramValues["guild_id"] = (ushort?)source.GuildID; paramValues["id"] = source.ID; paramValues["user_id"] = (Int32)source.UserID; paramValues["when"] = source.When; }
/// <summary> /// Copies the values from the given <paramref name="source"/> into this WorldStatsGuildUserChangeTable. /// </summary> /// <param name="source">The IWorldStatsGuildUserChangeTable to copy the values from.</param> public void CopyValuesFrom(IWorldStatsGuildUserChangeTable source) { GuildID = source.GuildID; ID = source.ID; UserID = source.UserID; When = source.When; }
/// <summary> /// Copies the column values into the given Dictionary using the database column name /// with a prefixed @ as the key. The keys must already exist in the Dictionary; /// this method will not create them if they are missing. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="dic">The Dictionary to copy the values into.</param> public static void CopyValues(IWorldStatsGuildUserChangeTable source, IDictionary <String, Object> dic) { dic["guild_id"] = source.GuildID; dic["id"] = source.ID; dic["user_id"] = source.UserID; dic["when"] = source.When; }
/// <summary> /// Copies the column values into the given DbParameterValues using the database column name /// with a prefixed @ as the key. The key must already exist in the DbParameterValues /// for the value to be copied over. If any of the keys in the DbParameterValues do not /// match one of the column names, or if there is no field for a key, then it will be /// ignored. Because of this, it is important to be careful when using this method /// since columns or keys can be skipped without any indication. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="paramValues">The DbParameterValues to copy the values into.</param> public static void TryCopyValues(this IWorldStatsGuildUserChangeTable source, DbParameterValues paramValues) { for (var i = 0; i < paramValues.Count; i++) { switch (paramValues.GetParameterName(i)) { case "guild_id": paramValues[i] = (ushort?)source.GuildID; break; case "id": paramValues[i] = source.ID; break; case "user_id": paramValues[i] = (Int32)source.UserID; break; case "when": paramValues[i] = source.When; break; } } }
/// <summary> /// Copies the values from the given <paramref name="source"/> into this WorldStatsGuildUserChangeTable. /// </summary> /// <param name="source">The IWorldStatsGuildUserChangeTable to copy the values from.</param> public void CopyValuesFrom(IWorldStatsGuildUserChangeTable source) { this.GuildID = (System.Nullable<NetGore.Features.Guilds.GuildID>)source.GuildID; this.ID = (System.UInt32)source.ID; this.UserID = (DemoGame.CharacterID)source.UserID; this.When = (System.DateTime)source.When; }
/// <summary> /// Copies the column values into the given Dictionary using the database column name /// with a prefixed @ as the key. The keys must already exist in the Dictionary; /// this method will not create them if they are missing. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="dic">The Dictionary to copy the values into.</param> public static void CopyValues(IWorldStatsGuildUserChangeTable source, System.Collections.Generic.IDictionary<System.String,System.Object> dic) { dic["guild_id"] = (System.Nullable<NetGore.Features.Guilds.GuildID>)source.GuildID; dic["id"] = (System.UInt32)source.ID; dic["user_id"] = (DemoGame.CharacterID)source.UserID; dic["when"] = (System.DateTime)source.When; }
/// <summary> /// Initializes a new instance of the <see cref="WorldStatsGuildUserChangeTable"/> class. /// </summary> /// <param name="source">IWorldStatsGuildUserChangeTable to copy the initial values from.</param> public WorldStatsGuildUserChangeTable(IWorldStatsGuildUserChangeTable source) { CopyValuesFrom(source); }
/// <summary> /// Checks if this <see cref="IWorldStatsGuildUserChangeTable"/> contains the same values as another <see cref="IWorldStatsGuildUserChangeTable"/>. /// </summary> /// <param name="source">The source <see cref="IWorldStatsGuildUserChangeTable"/>.</param> /// <param name="otherItem">The <see cref="IWorldStatsGuildUserChangeTable"/> to compare the values to.</param> /// <returns> /// True if this <see cref="IWorldStatsGuildUserChangeTable"/> contains the same values as the <paramref name="otherItem"/>; otherwise false. /// </returns> public static System.Boolean HasSameValues(this IWorldStatsGuildUserChangeTable source, IWorldStatsGuildUserChangeTable otherItem) { return Equals(source.GuildID, otherItem.GuildID) && Equals(source.ID, otherItem.ID) && Equals(source.UserID, otherItem.UserID) && Equals(source.When, otherItem.When); }
/// <summary> /// Copies the values from the given <paramref name="source"/> into this WorldStatsGuildUserChangeTable. /// </summary> /// <param name="source">The IWorldStatsGuildUserChangeTable to copy the values from.</param> public void CopyValuesFrom(IWorldStatsGuildUserChangeTable source) { GuildID = source.GuildID; ID = source.ID; UserID = source.UserID; When = source.When; }
/// <summary> /// Copies the column values into the given Dictionary using the database column name /// with a prefixed @ as the key. The keys must already exist in the Dictionary; /// this method will not create them if they are missing. /// </summary> /// <param name="source">The object to copy the values from.</param> /// <param name="dic">The Dictionary to copy the values into.</param> public static void CopyValues(IWorldStatsGuildUserChangeTable source, IDictionary<String, Object> dic) { dic["guild_id"] = source.GuildID; dic["id"] = source.ID; dic["user_id"] = source.UserID; dic["when"] = source.When; }
/// <summary> /// Initializes a new instance of the <see cref="WorldStatsGuildUserChangeTable"/> class. /// </summary> /// <param name="source">IWorldStatsGuildUserChangeTable to copy the initial values from.</param> public WorldStatsGuildUserChangeTable(IWorldStatsGuildUserChangeTable source) { CopyValuesFrom(source); }