// DropAll public void DellDropAll_NPC(sqlTable.Data.t_npc_drop_all npc, DBInfoConnection context) { try { if(context.TestConnection()) { using (var db = context.CreateMySQL) { db.t_npc_drop_all.Where(p => p.a_npc_idx == npc.a_npc_idx) .Delete(); } } } catch (Exception ex) { } }
public void DropAll_NPC_Add(sqlTable.Data.t_npc_drop_all npc, DBInfoConnection context) { try { if (context.TestConnection()) { using (var db = context.CreateMySQL) { db.t_npc_drop_all .Value(p => p.a_npc_idx, npc.a_npc_idx) .Value(p => p.a_item_idx, npc.a_item_idx) .Value(p => p.a_prob, npc.a_prob).Insert(); } } } catch (Exception ex) { } }