• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# DbParameterValues类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DbParameterValues的典型用法代码示例。如果您正苦于以下问题:C# DbParameterValues类的具体用法?C# DbParameterValues怎么用?C# DbParameterValues使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DbParameterValues类属于命名空间,在下文中一共展示了DbParameterValues类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CopyValues

 /// <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 IQuestTable source, DbParameterValues paramValues)
 {
     paramValues["id"] = (UInt16)source.ID;
     paramValues["repeatable"] = source.Repeatable;
     paramValues["reward_cash"] = source.RewardCash;
     paramValues["reward_exp"] = source.RewardExp;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:QuestTableDbExtensions.cs


示例2: CopyValues

 /// <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 ICharacterTemplateTable source, DbParameterValues paramValues)
 {
     paramValues["ai_id"] = (ushort?)source.AIID;
     paramValues["alliance_id"] = (Byte)source.AllianceID;
     paramValues["body_id"] = (UInt16)source.BodyID;
     paramValues["chat_dialog"] = (ushort?)source.ChatDialog;
     paramValues["exp"] = source.Exp;
     paramValues["give_cash"] = source.GiveCash;
     paramValues["give_exp"] = source.GiveExp;
     paramValues["id"] = (UInt16)source.ID;
     paramValues["level"] = source.Level;
     paramValues["move_speed"] = source.MoveSpeed;
     paramValues["name"] = source.Name;
     paramValues["respawn"] = source.Respawn;
     paramValues["shop_id"] = (ushort?)source.ShopID;
     paramValues["statpoints"] = source.StatPoints;
     paramValues["stat_agi"] = (Int16)source.GetStat(StatType.Agi);
     paramValues["stat_defence"] = (Int16)source.GetStat(StatType.Defence);
     paramValues["stat_int"] = (Int16)source.GetStat(StatType.Int);
     paramValues["stat_maxhit"] = (Int16)source.GetStat(StatType.MaxHit);
     paramValues["stat_maxhp"] = (Int16)source.GetStat(StatType.MaxHP);
     paramValues["stat_maxmp"] = (Int16)source.GetStat(StatType.MaxMP);
     paramValues["stat_minhit"] = (Int16)source.GetStat(StatType.MinHit);
     paramValues["stat_str"] = (Int16)source.GetStat(StatType.Str);
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:32,代码来源:CharacterTemplateTableDbExtensions.cs


示例3: CopyValues

 /// <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 IItemTemplateTable source, DbParameterValues paramValues)
 {
     paramValues["action_display_id"] = (ushort?)source.ActionDisplayID;
     paramValues["description"] = source.Description;
     paramValues["equipped_body"] = source.EquippedBody;
     paramValues["graphic"] = (UInt16)source.Graphic;
     paramValues["height"] = source.Height;
     paramValues["hp"] = (Int16)source.HP;
     paramValues["id"] = (UInt16)source.ID;
     paramValues["mp"] = (Int16)source.MP;
     paramValues["name"] = source.Name;
     paramValues["range"] = source.Range;
     paramValues["stat_agi"] = (Int16)source.GetStat(StatType.Agi);
     paramValues["stat_defence"] = (Int16)source.GetStat(StatType.Defence);
     paramValues["stat_int"] = (Int16)source.GetStat(StatType.Int);
     paramValues["stat_maxhit"] = (Int16)source.GetStat(StatType.MaxHit);
     paramValues["stat_maxhp"] = (Int16)source.GetStat(StatType.MaxHP);
     paramValues["stat_maxmp"] = (Int16)source.GetStat(StatType.MaxMP);
     paramValues["stat_minhit"] = (Int16)source.GetStat(StatType.MinHit);
     paramValues["stat_req_agi"] = (Int16)source.GetReqStat(StatType.Agi);
     paramValues["stat_req_int"] = (Int16)source.GetReqStat(StatType.Int);
     paramValues["stat_req_str"] = (Int16)source.GetReqStat(StatType.Str);
     paramValues["stat_str"] = (Int16)source.GetStat(StatType.Str);
     paramValues["type"] = (Byte)source.Type;
     paramValues["value"] = source.Value;
     paramValues["weapon_type"] = (Byte)source.WeaponType;
     paramValues["width"] = source.Width;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:35,代码来源:ItemTemplateTableDbExtensions.cs


示例4: CopyValues

 /// <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 ICharacterTemplateEquippedTable source, DbParameterValues paramValues)
 {
     paramValues["chance"] = (UInt16)source.Chance;
     paramValues["character_template_id"] = (UInt16)source.CharacterTemplateID;
     paramValues["id"] = source.ID;
     paramValues["item_template_id"] = (UInt16)source.ItemTemplateID;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:14,代码来源:CharacterTemplateEquippedTableDbExtensions.cs


示例5: CopyValues

 /// <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 ICharacterQuestStatusTable source, DbParameterValues paramValues)
 {
     paramValues["character_id"] = (Int32)source.CharacterID;
     paramValues["completed_on"] = source.CompletedOn;
     paramValues["quest_id"] = (UInt16)source.QuestID;
     paramValues["started_on"] = source.StartedOn;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:14,代码来源:CharacterQuestStatusTableDbExtensions.cs


示例6: CopyValues

 /// <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 IGuildTable source, DbParameterValues paramValues)
 {
     paramValues["created"] = source.Created;
     paramValues["id"] = (UInt16)source.ID;
     paramValues["name"] = source.Name;
     paramValues["tag"] = source.Tag;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:GuildTableDbExtensions.cs


示例7: CopyValues

 /// <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 IAccountIpsTable source, DbParameterValues paramValues)
 {
     paramValues["account_id"] = (Int32)source.AccountID;
     paramValues["id"] = source.ID;
     paramValues["ip"] = source.Ip;
     paramValues["time"] = source.Time;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:AccountIpsTableDbExtensions.cs


示例8: CopyValues

 /// <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;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:14,代码来源:WorldStatsGuildUserChangeTableDbExtensions.cs


示例9: CopyValues

 /// <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 ICharacterTable source, DbParameterValues paramValues)
 {
     paramValues["ai_id"] = (ushort?)source.AIID;
     paramValues["body_id"] = (UInt16)source.BodyID;
     paramValues["cash"] = source.Cash;
     paramValues["character_template_id"] = (ushort?)source.CharacterTemplateID;
     paramValues["chat_dialog"] = (ushort?)source.ChatDialog;
     paramValues["exp"] = source.Exp;
     paramValues["hp"] = (Int16)source.HP;
     paramValues["id"] = (Int32)source.ID;
     paramValues["level"] = source.Level;
     paramValues["load_map_id"] = (UInt16)source.LoadMapID;
     paramValues["load_x"] = source.LoadX;
     paramValues["load_y"] = source.LoadY;
     paramValues["move_speed"] = source.MoveSpeed;
     paramValues["mp"] = (Int16)source.MP;
     paramValues["name"] = source.Name;
     paramValues["respawn_map_id"] = (ushort?)source.RespawnMapID;
     paramValues["respawn_x"] = source.RespawnX;
     paramValues["respawn_y"] = source.RespawnY;
     paramValues["shop_id"] = (ushort?)source.ShopID;
     paramValues["statpoints"] = source.StatPoints;
     paramValues["stat_agi"] = (Int16)source.GetStat(StatType.Agi);
     paramValues["stat_defence"] = (Int16)source.GetStat(StatType.Defence);
     paramValues["stat_int"] = (Int16)source.GetStat(StatType.Int);
     paramValues["stat_maxhit"] = (Int16)source.GetStat(StatType.MaxHit);
     paramValues["stat_maxhp"] = (Int16)source.GetStat(StatType.MaxHP);
     paramValues["stat_maxmp"] = (Int16)source.GetStat(StatType.MaxMP);
     paramValues["stat_minhit"] = (Int16)source.GetStat(StatType.MinHit);
     paramValues["stat_str"] = (Int16)source.GetStat(StatType.Str);
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:38,代码来源:CharacterTableDbExtensions.cs


示例10: CopyValues

 /// <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 IWorldStatsCountUserKillNpcTable source, DbParameterValues paramValues)
 {
     paramValues["count"] = source.Count;
     paramValues["last_update"] = source.LastUpdate;
     paramValues["npc_template_id"] = (UInt16)source.NPCTemplateID;
     paramValues["user_id"] = (Int32)source.UserID;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:WorldStatsCountUserKillNpcTableDbExtensions.cs


示例11: CopyValues

 /// <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 IGuildMemberTable source, DbParameterValues paramValues)
 {
     paramValues["character_id"] = (Int32)source.CharacterID;
     paramValues["guild_id"] = (UInt16)source.GuildID;
     paramValues["joined"] = source.Joined;
     paramValues["rank"] = (Byte)source.Rank;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:14,代码来源:GuildMemberTableDbExtensions.cs


示例12: CopyValues

 /// <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 ICharacterQuestStatusKillsTable source, DbParameterValues paramValues)
 {
     paramValues["character_id"] = (Int32)source.CharacterID;
     paramValues["character_template_id"] = (UInt16)source.CharacterTemplateID;
     paramValues["count"] = source.Count;
     paramValues["quest_id"] = (UInt16)source.QuestID;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:14,代码来源:CharacterQuestStatusKillsTableDbExtensions.cs


示例13: CopyValues

 /// <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 ICharacterStatusEffectTable source, DbParameterValues paramValues)
 {
     paramValues["character_id"] = (Int32)source.CharacterID;
     paramValues["id"] = (Int32)source.ID;
     paramValues["power"] = source.Power;
     paramValues["status_effect_id"] = (Byte)source.StatusEffect;
     paramValues["time_left_secs"] = source.TimeLeftSecs;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:15,代码来源:CharacterStatusEffectTableDbExtensions.cs


示例14: CopyValues

 /// <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 ICharacterTemplateInventoryTable source, DbParameterValues paramValues)
 {
     paramValues["chance"] = (UInt16)source.Chance;
     paramValues["character_template_id"] = (UInt16)source.CharacterTemplateID;
     paramValues["id"] = source.ID;
     paramValues["item_template_id"] = (UInt16)source.ItemTemplateID;
     paramValues["max"] = source.Max;
     paramValues["min"] = source.Min;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:16,代码来源:CharacterTemplateInventoryTableDbExtensions.cs


示例15: CopyValues

 /// <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 IWorldStatsUserLevelTable source, DbParameterValues paramValues)
 {
     paramValues["character_id"] = (Int32)source.CharacterID;
     paramValues["id"] = source.ID;
     paramValues["level"] = source.Level;
     paramValues["map_id"] = (ushort?)source.MapID;
     paramValues["when"] = source.When;
     paramValues["x"] = source.X;
     paramValues["y"] = source.Y;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:17,代码来源:WorldStatsUserLevelTableDbExtensions.cs


示例16: CopyValues

 /// <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 IWorldStatsUserConsumeItemTable source, DbParameterValues paramValues)
 {
     paramValues["id"] = source.ID;
     paramValues["item_template_id"] = (UInt16)source.ItemTemplateID;
     paramValues["map_id"] = (ushort?)source.MapID;
     paramValues["user_id"] = (Int32)source.UserID;
     paramValues["when"] = source.When;
     paramValues["x"] = source.X;
     paramValues["y"] = source.Y;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:17,代码来源:WorldStatsUserConsumeItemTableDbExtensions.cs


示例17: CopyValues

 /// <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 IAccountBanTable source, DbParameterValues paramValues)
 {
     paramValues["account_id"] = (Int32)source.AccountID;
     paramValues["end_time"] = source.EndTime;
     paramValues["expired"] = source.Expired;
     paramValues["id"] = source.ID;
     paramValues["issued_by"] = source.IssuedBy;
     paramValues["reason"] = source.Reason;
     paramValues["start_time"] = source.StartTime;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:17,代码来源:AccountBanTableDbExtensions.cs


示例18: CopyValues

 /// <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 IWorldStatsQuestCancelTable source, DbParameterValues paramValues)
 {
     paramValues["id"] = source.ID;
     paramValues["map_id"] = (ushort?)source.MapID;
     paramValues["quest_id"] = (UInt16)source.QuestID;
     paramValues["user_id"] = (Int32)source.UserID;
     paramValues["when"] = source.When;
     paramValues["x"] = source.X;
     paramValues["y"] = source.Y;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:17,代码来源:WorldStatsQuestCancelTableDbExtensions.cs


示例19: CopyValues

 /// <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 IMapSpawnTable source, DbParameterValues paramValues)
 {
     paramValues["amount"] = source.Amount;
     paramValues["character_template_id"] = (UInt16)source.CharacterTemplateID;
     paramValues["height"] = source.Height;
     paramValues["id"] = (Int32)source.ID;
     paramValues["map_id"] = (UInt16)source.MapID;
     paramValues["width"] = source.Width;
     paramValues["x"] = source.X;
     paramValues["y"] = source.Y;
 }
开发者ID:mateuscezar,项目名称:netgore,代码行数:18,代码来源:MapSpawnTableDbExtensions.cs


示例20: CopyValues

 /// <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 IAccountTable source, DbParameterValues paramValues)
 {
     paramValues["creator_ip"] = source.CreatorIp;
     paramValues["current_ip"] = source.CurrentIp;
     paramValues["email"] = source.Email;
     paramValues["id"] = (Int32)source.ID;
     paramValues["name"] = source.Name;
     paramValues["password"] = source.Password;
     paramValues["permissions"] = (Byte)source.Permissions;
     paramValues["time_created"] = source.TimeCreated;
     paramValues["time_last_login"] = source.TimeLastLogin;
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:19,代码来源:AccountTableDbExtensions.cs



注:本文中的DbParameterValues类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DbProjectExpression类代码示例发布时间:2022-05-24
下一篇:
C# DbParameterCollection类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap