Converting

06/21/2011 05:59 zTek#1
So I'm converting this Trade Partner to NCOS 5165, and having trouble with saving, deleting. On this other source, it's for sql.

The source I use (NCOS), is not sql. So basically I need help converting.

Here is what I need converted (I'm not asking to be spoon fed, just any help will be appreciated).

Code:
 public static void DelPartner(uint UID, uint IDYou)
        {
            MySqlCommand Cmd = new MySqlCommand(MySqlCommandType.DELETE);
            Cmd.Delete("TradePartner", "CharID", IDYou).And("PartnerID", UID).Execute();
        }
Code:
 public static void SavePartner(uint uid, string name, long timestart, Character C)
        {
            MySqlCommand cmd = new MySqlCommand(MySqlCommandType.INSERT);
            cmd.Insert("TradePartner").Insert("CharID", C.EntityID).Insert("PartenerName", name).Insert("PartenerID", uid).Insert("TimeStart",timestart).Execute();
           
        }
Thank you.
06/21/2011 08:06 Santa#2
It should no be that hard, honestly. Look at some of your functions that you already have that do similar things and start from scratch, you don't need to have it exactly like the code above.