本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}
示例6: DeleteClan
public static void DeleteClan(uint ID)
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
cmd.Delete("Clans", "ClanID", ID).Execute();
}
示例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();
}
示例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();
}
示例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();
}
示例10: RemoveMentor
public static void RemoveMentor(uint apprenticeuid)
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
cmd.Delete("apprentice", "apprenticeid", apprenticeuid).Execute();
}
示例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();
}
示例12: RemoveApprentice
public static void RemoveApprentice(Client.GameState client, uint apprenticeID)
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
cmd.Delete("apprentice", "apprenticeid", apprenticeID).Execute();
}
示例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();
}
示例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();
}
}
示例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();
}