当前位置: 首页>>代码示例>>C#>>正文


C# MySqlCommand.Delete方法代码示例

本文整理汇总了C#中Conquer_Online_Server.Database.MySqlCommand.Delete方法的典型用法代码示例。如果您正苦于以下问题:C# MySqlCommand.Delete方法的具体用法?C# MySqlCommand.Delete怎么用?C# MySqlCommand.Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Conquer_Online_Server.Database.MySqlCommand的用法示例。


在下文中一共展示了MySqlCommand.Delete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Delete

 public static void Delete(uint UID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("guild_arsenalsdonation", "item_uid", UID).Execute();
     cmd = new MySqlCommand(MySqlCommandType.UPDATE);
     cmd.Update("items").Set("Inscribed", 0).Where("UID", UID).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:7,代码来源:ArsenalsTable.cs

示例2: DeleteItem

 public static void DeleteItem(uint UID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     int res = cmd.Delete("items", "UID", UID).Execute();
     MySqlCommand cmds = new MySqlCommand(MySqlCommandType.DELETE).Delete("items", "UID", UID);
     cmds.Execute();
 }
开发者ID:faresali,项目名称:co-pserver,代码行数:7,代码来源:ConquerItemTable.cs

示例3: Disband

 public static void Disband(Game.ConquerStructures.Society.Guild guild)
 {
     MySqlCommand command = new MySqlCommand(MySqlCommandType.UPDATE);
     command.Update("entities").Set("GuildID", 0).Where("GuildID", guild.ID).Execute();
     ServerBase.Kernel.Guilds.Remove(guild.ID);
     command = new MySqlCommand(MySqlCommandType.DELETE);
     command.Delete("guilds", "ID", guild.ID).Execute();
 }
开发者ID:faresali,项目名称:co-pserver,代码行数:8,代码来源:GuildTable.cs

示例4: DeleteAll

 public static void DeleteAll(Dictionary<uint, Game.ConquerStructures.Society.ArsenalSingle> Items)
 {
     foreach (ArsenalSingle AS in Items.Values)
     {
         MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
         cmd.Delete("guild_arsenalsdonation", "item_uid", AS.UID).Execute();
         cmd = new MySqlCommand(MySqlCommandType.UPDATE);
         cmd.Update("items").Set("Inscribed", 0).Where("UID", AS.UID).Execute();
     }
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:10,代码来源:ArsenalsTable.cs

示例5: DeleteSpell

 public static void DeleteSpell(Client.GameState client, ushort ID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("skills", "ID", ID).And("EntityID", client.Entity.UID).Execute();
 }
开发者ID:faresali,项目名称:co-pserver,代码行数:5,代码来源:Copy+of+SkillTable.cs

示例6: DeleteClan

 public static void DeleteClan(uint ID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("Clans", "ClanID", ID).Execute();
 }
开发者ID:faresali,项目名称:co-pserver,代码行数:5,代码来源:Clans.cs

示例7: RemovePartner

 public static void RemovePartner(Client.GameState client, uint partnerID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("partners", "partnerid", partnerID).And("entityid", client.Entity.UID).Execute();
     cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("partners", "entityid", partnerID).And("partnerid", client.Entity.UID).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:7,代码来源:KnownPersons.cs

示例8: RemoveEnemy

 public static void RemoveEnemy(Game.ConquerStructures.Society.Guild guild, uint enemy)
 {
     MySqlCommand command = new MySqlCommand(MySqlCommandType.DELETE);
     command.Delete("guildenemy", "GuildID", guild.ID).And("EnemyID", enemy).Execute();
 }
开发者ID:faresali,项目名称:co-pserver,代码行数:5,代码来源:GuildTable.cs

示例9: RemoveFriend

 public static void RemoveFriend(Client.GameState client, uint friendID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("friends", "friendid", friendID).And("entityid", client.Entity.UID).Execute();
     cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("friends", "entityid", friendID).And("friendid", client.Entity.UID).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:7,代码来源:KnownPersons.cs

示例10: RemoveMentor

 public static void RemoveMentor(uint apprenticeuid)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("apprentice", "apprenticeid", apprenticeuid).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:5,代码来源:KnownPersons.cs

示例11: RemoveEnemy

 public static void RemoveEnemy(Client.GameState client, uint enemyID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("enemy", "enemyid", enemyID).And("entityid", client.Entity.UID).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:5,代码来源:KnownPersons.cs

示例12: RemoveApprentice

 public static void RemoveApprentice(Client.GameState client, uint apprenticeID)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("apprentice", "apprenticeid", apprenticeID).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:5,代码来源:KnownPersons.cs

示例13: RemoveAdding

 public static void RemoveAdding(uint UID, uint addingid)
 {
     MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
     cmd.Delete("itemadding", "uid", UID).And("addingid", addingid).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:5,代码来源:ItemAddingTable.cs

示例14: DeleteTabelInstances

 public void DeleteTabelInstances()
 {
     foreach (Team_client client in Top8.Values)
     {
         MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
         int res = cmd.Delete("elitepk", "UID", client.UID).Execute();
     }
 }
开发者ID:faresali,项目名称:co-pserver,代码行数:8,代码来源:EliteTournament.cs

示例15: DeleteRelation

 public void DeleteRelation(UInt32 Relative, Network.GamePackets.ClanRelations.RelationTypes type)
 {
     MySqlCommand Command = new MySqlCommand(MySqlCommandType.DELETE);
     Command.Delete("clanrelation", "clanid", this.ClanId).And("AssociatedId", Relative).And("type", Convert.ToByte(type)).Execute();
 }
开发者ID:AiiMz,项目名称:PserverWork,代码行数:5,代码来源:Clans.cs


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