public static int Insert(Match_team m, DatabaseT pDb = null) { DatabaseT db = new DatabaseT(); db.Connect(); OracleCommand command = db.CreateCommand(SQL_INSERT); PrepareCommand(command, m); int ret = db.ExecuteNonQuery(command); db.Close(); return(ret); }
private static void PrepareCommand(OracleCommand command, Match_team m) { command.BindByName = true; command.Parameters.AddWithValue(":id", m.Match_Id); command.Parameters.AddWithValue(":team", m.Team_Id); }